Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 155 for encodeArg (0.15 sec)

  1. fastapi/encoders.py

        if isinstance(obj, BaseModel):
            # TODO: remove when deprecating Pydantic v1
            encoders: Dict[Any, Any] = {}
            if not PYDANTIC_V2:
                encoders = getattr(obj.__config__, "json_encoders", {})  # type: ignore[attr-defined]
                if custom_encoder:
                    encoders.update(custom_encoder)
            obj_dict = _model_dump(
                obj,
                mode="json",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. 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)
  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. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/worker/TestEventSerializer.java

            @Override
            public void write(Encoder encoder, DefaultTestFailure value) throws Exception {
                encoder.writeNullableString(value.getDetails().getMessage());
                encoder.writeString(value.getDetails().getClassName());
                encoder.writeString(value.getDetails().getStacktrace());
                encoder.writeBoolean(value.getDetails().isAssertionFailure());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/main/java/org/gradle/tooling/internal/provider/action/BuildActionSerializer.java

                encoder.writeBoolean(startParameter.isProfile());
                encoder.writeBoolean(startParameter.isContinueOnFailure());
                encoder.writeBoolean(startParameter.isOffline());
                encoder.writeBoolean(startParameter.isRefreshDependencies());
                encoder.writeBoolean(startParameter.isBuildCacheEnabled());
                encoder.writeBoolean(startParameter.isBuildCacheDebugLogging());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 30.1K bytes
    - Viewed (0)
Back to top