Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 536 for encodeArg (0.17 sec)

  1. src/encoding/gob/encoder_test.go

    // See Issue 16204.
    func TestCatchInvalidNilValue(t *testing.T) {
    	encodeErr, panicErr := encodeAndRecover(nil)
    	if panicErr != nil {
    		t.Fatalf("panicErr=%v, should not panic encoding untyped nil", panicErr)
    	}
    	if encodeErr == nil {
    		t.Errorf("got err=nil, want non-nil error when encoding untyped nil value")
    	} else if !strings.Contains(encodeErr.Error(), "nil value") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/storage/storage_codec.go

    	}
    
    	s := serializer.Serializer
    
    	// Give callers the opportunity to wrap encoders and decoders.  For decoders, each returned decoder will
    	// be passed to the recognizer so that multiple decoders are available.
    	var encoder runtime.Encoder = s
    	if opts.EncoderDecoratorFn != nil {
    		encoder = opts.EncoderDecoratorFn(encoder)
    	}
    	decoders := []runtime.Decoder{
    		// selected decoder as the primary
    		s,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 05 15:03:23 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/interfaces.go

    	SupportedMediaTypes() []SerializerInfo
    
    	// EncoderForVersion returns an encoder that ensures objects being written to the provided
    	// serializer are in the provided group version.
    	EncoderForVersion(serializer Encoder, gv GroupVersioner) Encoder
    	// DecoderToVersion returns a decoder that ensures objects being read by the provided
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 28 03:26:35 UTC 2023
    - 19K bytes
    - Viewed (0)
  4. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/package-info.java

     *      The WriteContext keeps track (among other things) of the low level binary stream (actually, a Gradle serialization {@link org.gradle.internal.serialize.Encoder Encoder}) and the codec to be used.
     *  </p>
     *  <p>
     *      Object serialization is a graph-walking process, and as such, it has a recursive nature.
     *  </p>
     *  <p></p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/resource/scheme.go

    }
    
    func (dynamicCodec) Encode(obj runtime.Object, w io.Writer) error {
    	// There is no need to handle runtime.CacheableObject, as we only
    	// fallback to other encoders here.
    	return unstructured.UnstructuredJSONScheme.Encode(obj, w)
    }
    
    // Identifier implements runtime.Encoder interface.
    func (dynamicCodec) Identifier() runtime.Identifier {
    	return unstructured.UnstructuredJSONScheme.Identifier()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 21 15:58:15 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  6. maven-core/src/test/resources/remote-repo-1/maven-test/jars/maven-test-b-1.0.jar

    org/apache/commons/codec/DecoderException.class package org.apache.commons.codec; public synchronized class DecoderException extends Exception { public void DecoderException(String); } org/apache/commons/codec/Encoder.class package org.apache.commons.codec; public abstract interface Encoder { public abstract Object encode(Object) throws EncoderException; } org/apache/commons/codec/EncoderException.class package org.apache.commons.codec; public synchronized class EncoderException extends Exception { public...
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Aug 09 19:02:31 UTC 2004
    - 18.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/storage/storage_factory.go

    	cohabitatingResources []schema.GroupResource
    	// encoderDecoratorFn is optional and may wrap the provided encoder prior to being serialized.
    	encoderDecoratorFn func(runtime.Encoder) runtime.Encoder
    	// decoderDecoratorFn is optional and may wrap the provided decoders (can add new decoders). The order of
    	// returned decoders will be priority for attempt to decode.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 13:35:58 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/Download.java

                Object encoder = getEncoderMethod.invoke(null);
                return (String) encodeMethod.invoke(encoder, new Object[]{userInfo.getBytes("UTF-8")});
            } catch (Exception java7OrEarlier) {
                try {
                    Method encodeMethod = loader.loadClass("javax.xml.bind.DatatypeConverter").getMethod("printBase64Binary", byte[].class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go

    		list.Items = append(list.Items, *unstruct)
    	}
    	return nil
    }
    
    type jsonFallbackEncoder struct {
    	encoder    runtime.Encoder
    	identifier runtime.Identifier
    }
    
    func NewJSONFallbackEncoder(encoder runtime.Encoder) runtime.Encoder {
    	result := map[string]string{
    		"name": "fallback",
    		"base": string(encoder.Identifier()),
    	}
    	identifier, err := gojson.Marshal(result)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 20:39:55 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  10. src/encoding/gob/encode.go

    		return nil
    	}
    	info.encInit.Lock()
    	defer info.encInit.Unlock()
    	enc := info.encoder.Load()
    	if enc == nil {
    		if building == nil {
    			building = make(map[*typeInfo]bool)
    		}
    		building[info] = true
    		enc = compileEnc(ut, building)
    		info.encoder.Store(enc)
    	}
    	return enc
    }
    
    func (enc *Encoder) encode(b *encBuffer, value reflect.Value, ut *userTypeInfo) {
    	defer catchError(&enc.err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top