Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 215 for doDecode (0.28 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor.go

    	}
    	return nil, err
    }
    
    func (s *serializer) Decode(data []byte, gvk *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) {
    	// A preliminary pass over the input to obtain the actual GVK is redundant on a successful
    	// decode into Unstructured.
    	if _, ok := into.(runtime.Unstructured); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 14:57:12 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. pkg/api/testing/unstructured_test.go

    				if err := jsonSerializer.Encode(item, &buf); err != nil {
    					t.Fatalf("error encoding native to json: %v", err)
    				}
    				var uJSON runtime.Object = &metaunstruct.Unstructured{}
    				uJSON, _, err = jsonSerializer.Decode(buf.Bytes(), &gvk, uJSON)
    				if err != nil {
    					t.Fatalf("error decoding json to unstructured: %v", err)
    				}
    
    				// original->CBOR->Unstructured
    				buf.Reset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/codecs/NotImplementedCodec.kt

            val javaClass = GeneratedSubclasses.unpackType(value)
            writeClass(javaClass)
            logNotImplemented(javaClass)
        }
    
        override suspend fun ReadContext.decode(): Any? {
            logNotImplemented(readClass())
            return null
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/LevelCodec.kt

    
    object LevelCodec : Codec<Level> {
    
        override suspend fun WriteContext.encode(value: Level) {
            encodeUsingJavaSerialization(value)
        }
    
        override suspend fun ReadContext.decode(): Level? =
            decodeUsingJavaSerialization()?.uncheckedCast()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:59:39 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/UnitCodec.kt

    import org.gradle.internal.serialize.graph.WriteContext
    
    
    object UnitCodec : Codec<Unit> {
    
        override suspend fun WriteContext.encode(value: Unit) {
            // noop
        }
    
        override suspend fun ReadContext.decode() {
            // returns Unit instance under the hood
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 1K bytes
    - Viewed (0)
  6. internal/config/certs.go

    	// Trimming leading and tailing white spaces.
    	data = bytes.TrimSpace(data)
    
    	// Parse all certs in the chain.
    	current := data
    	for len(current) > 0 {
    		var pemBlock *pem.Block
    		if pemBlock, current = pem.Decode(current); pemBlock == nil {
    			return nil, ErrTLSUnexpectedData(nil).Msg("Could not read PEM block from file %s", certFile)
    		}
    
    		var x509Cert *x509.Certificate
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/DurationCodec.kt

            // to work around https://bugs.openjdk.java.net/browse/JDK-8054978
            // on Java 8
            writeLong(value.seconds)
            writeSmallInt(value.nano)
        }
    
        override suspend fun ReadContext.decode(): Duration =
            Duration.ofSeconds(readLong(), readSmallInt().toLong())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/ClassCodec.kt

    
    object ClassCodec : Codec<Class<*>> {
    
        override suspend fun WriteContext.encode(value: Class<*>) {
            writeClass(value)
        }
    
        override suspend fun ReadContext.decode(): Class<*>? =
            readClass()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 1K bytes
    - Viewed (0)
  9. pkg/spiffe/spiffe.go

    			retryBackoffTime *= 2 // Exponentially increase the retry backoff time.
    		}
    		defer resp.Body.Close()
    
    		doc := new(bundleDoc)
    		if err := json.NewDecoder(resp.Body).Decode(doc); err != nil {
    			return nil, fmt.Errorf("trust domain [%s] at URL [%s] failed to decode bundle: %v", trustDomain, endpoint, err)
    		}
    
    		var certs []*x509.Certificate
    		for i, key := range doc.Keys {
    			if key.Use == "x509-svid" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/DestinationRootCopySpecCodec.kt

        override suspend fun WriteContext.encode(value: DestinationRootCopySpec) {
            write(value.destinationDir)
            write(value.delegate)
        }
    
        override suspend fun ReadContext.decode(): DestinationRootCopySpec {
            val destDir = read() as? File
            val delegate = read() as CopySpecInternal
            val spec = DestinationRootCopySpec(fileResolver, delegate)
            destDir?.let(spec::into)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top