Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for decodeInt8 (0.19 sec)

  1. cmd/kubeadm/app/phases/addons/dns/dns.go

    	return nil
    }
    
    func createCoreDNSAddon(deploymentBytes, serviceBytes, configBytes []byte, client clientset.Interface) error {
    	coreDNSConfigMap := &v1.ConfigMap{}
    	if err := kuberuntime.DecodeInto(clientsetscheme.Codecs.UniversalDecoder(), configBytes, coreDNSConfigMap); err != nil {
    		return errors.Wrapf(err, "%s ConfigMap", unableToDecodeCoreDNS)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/codec_test.go

    		}
    	}
    	badJSONKindMismatch := []byte(`{"myVersionKey":"v1","myKindKey":"ExternalInternalSame"}`)
    	if err := runtime.DecodeInto(codec, badJSONKindMismatch, &runtimetesting.TestType1{}); err == nil {
    		t.Errorf("Kind is set but doesn't match the object type: %s", badJSONKindMismatch)
    	}
    	if err := runtime.DecodeInto(codec, []byte(``), &runtimetesting.TestType1{}); err != nil {
    		t.Errorf("Should allow empty decode: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  3. src/encoding/gob/dec_helpers.go

    		}
    		if i >= len(slice) {
    			// This is a slice that we only partially allocated.
    			growSlice(v, &slice, length)
    		}
    		x := state.decodeInt()
    		// MinInt and MaxInt
    		if x < ^int64(^uint(0)>>1) || int64(^uint(0)>>1) < x {
    			error_(ovfl)
    		}
    		slice[i] = int(x)
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 19:28:46 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/registry/rest/rest.go

    type Storage interface {
    	// New returns an empty object that can be used with Create and Update after request data has been put into it.
    	// This object must be a pointer type for use with Codec.DecodeInto([]byte, runtime.Object)
    	New() runtime.Object
    
    	// Destroy cleans up its resources on shutdown.
    	// Destroy has to be implemented in thread-safe way and be prepared
    	// for being called more than once.
    	Destroy()
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 20 14:29:25 UTC 2023
    - 18.6K bytes
    - Viewed (0)
  5. pkg/api/testing/serialization_test.go

    	t.Logf("rs.v1.apps -> rc._internal")
    	if err := runtime.DecodeInto(decoder, data, rc); err != nil {
    		t.Fatalf("unexpected decoding error: %v", err)
    	}
    
    	t.Logf("rc._internal -> rc.v1")
    	data, err = runtime.Encode(defaultCodec, rc)
    	if err != nil {
    		t.Fatalf("unexpected encoding error: %v", err)
    	}
    
    	t.Logf("rc.v1 -> rs._internal.apps")
    	if err := runtime.DecodeInto(decoder, data, rs); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/codec.go

    // Decode is a convenience wrapper for decoding data into an Object.
    func Decode(d Decoder, data []byte) (Object, error) {
    	obj, _, err := d.Decode(data, nil, nil)
    	return obj, err
    }
    
    // DecodeInto performs a Decode into the provided object.
    func DecodeInto(d Decoder, data []byte, into Object) error {
    	out, gvk, err := d.Decode(data, nil, into)
    	if err != nil {
    		return err
    	}
    	if out != into {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 03:20:30 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  7. src/encoding/gob/decode.go

    	for _, b := range buf[0:n] {
    		x = x<<8 | uint64(b)
    	}
    	state.b.Drop(n)
    	return x
    }
    
    // decodeInt reads an encoded signed integer from state.r.
    // Does not check for overflow.
    func (state *decoderState) decodeInt() int64 {
    	x := state.decodeUint()
    	if x&1 != 0 {
    		return ^int64(x >> 1)
    	}
    	return int64(x >> 1)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/config/initconfiguration.go

    			// Decode the bytes into the internal struct. Under the hood, the bytes will be unmarshalled into the
    			// right external version, defaulted, and converted into the internal version.
    			if err := runtime.DecodeInto(kubeadmscheme.Codecs.UniversalDecoder(), fileContent, initcfg); err != nil {
    				return nil, err
    			}
    			continue
    		}
    		if kubeadmutil.GroupVersionKindsHasClusterConfiguration(gvk) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 12:41:16 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go

    	obj3 := reflect.New(reflect.TypeOf(object).Elem()).Interface().(runtime.Object)
    	if err := runtime.DecodeInto(codec, data, obj3); err != nil {
    		t.Errorf("%v: %v", name, err)
    		return
    	}
    
    	// special case for kinds which are internal and external at the same time (many in meta.k8s.io are). For those
    	// runtime.DecodeInto above will return the external variant and set the APIVersion and kind, while the input
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go

    func (s unstructuredJSONScheme) Decode(data []byte, _ *schema.GroupVersionKind, obj runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) {
    	var err error
    	if obj != nil {
    		err = s.decodeInto(data, obj)
    	} else {
    		obj, err = s.decode(data)
    	}
    
    	if err != nil {
    		return nil, nil, err
    	}
    
    	gvk := obj.GetObjectKind().GroupVersionKind()
    	if len(gvk.Kind) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 20:39:55 UTC 2023
    - 16.3K bytes
    - Viewed (0)
Back to top