Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 102 for doDecode (0.4 sec)

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

    }
    
    var allEncModes = []cbor.EncMode{
    	modes.Encode,
    	modes.EncodeNondeterministic,
    }
    
    var decModeNames = map[cbor.DecMode]string{
    	modes.Decode:    "Decode",
    	modes.DecodeLax: "DecodeLax",
    }
    
    var allDecModes = []cbor.DecMode{
    	modes.Decode,
    	modes.DecodeLax,
    }
    
    func assertNilError(t *testing.T, e error) {
    	if e != nil {
    		t.Errorf("expected nil error, got: %v", e)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 18:43:10 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. security/pkg/util/jwtutil.go

    	}
    
    	// Decode the second part.
    	claimBytes, err := DecodeJwtPart(parts[1])
    	if err != nil {
    		return nil, err
    	}
    	dec := json.NewDecoder(bytes.NewBuffer(claimBytes))
    
    	claims := make(map[string]any)
    	if err := dec.Decode(&claims); err != nil {
    		return nil, fmt.Errorf("failed to decode the JWT claims")
    	}
    	return claims, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Unsupported.kt

    ): Codec<T> = codec(
        encode = { value ->
            logUnsupportedBaseType("serialize", T::class, unpackType(value), documentationSection)
        },
        decode = {
            logUnsupported("deserialize", T::class, documentationSection)
            null
        }
    )
    
    
    inline fun <reified T : Any> unsupported(
        description: String,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/FileCodecs.kt

        }
    
        override suspend fun ReadContext.decode(): Directory {
            return fileFactory.dir(readFile())
        }
    }
    
    
    class RegularFileCodec(private val fileFactory: FileFactory) : Codec<RegularFile> {
        override suspend fun WriteContext.encode(value: RegularFile) {
            writeFile(value.asFile)
        }
    
        override suspend fun ReadContext.decode(): RegularFile {
            return fileFactory.file(readFile())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/StreamCodecs.kt

                writeEnum(StreamReference.UNSUPPORTED)
                return
            }
            writeEnum(StreamReference.IN)
        }
    
        override suspend fun ReadContext.decode(): InputStream? {
            if (readEnum<StreamReference>() == StreamReference.IN) {
                return System.`in`
            }
            logUnsupported("deserialize", InputStream::class, appendix = supportedStreamsInfo())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/stream/EncodedStream.java

     */
    
    package org.gradle.internal.stream;
    
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    
    /**
     * Provides Input/OutputStream implementations that are able to encode/decode using a simple algorithm (byte&lt;-&gt;2 digit hex string(2 bytes)).
     * Useful when streams are interpreted a text streams as it happens on IBM java for standard input.
     */
    public abstract class EncodedStream {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. cmd/batch-job-common-types.go

    // UnmarshalYAML - BatchJobKV extends default unmarshal to extract line, col information.
    func (kv *BatchJobKV) UnmarshalYAML(val *yaml.Node) error {
    	type jobKV BatchJobKV
    	var tmp jobKV
    	err := val.Decode(&tmp)
    	if err != nil {
    		return err
    	}
    	*kv = BatchJobKV(tmp)
    	kv.line, kv.col = val.Line, val.Column
    	return nil
    }
    
    // Validate returns an error if key is empty
    func (kv BatchJobKV) Validate() error {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/PatternSetCodec.kt

        override suspend fun WriteContext.encode(value: PatternSet) {
            writePatternSet(value)
        }
    
        override suspend fun ReadContext.decode() =
            patternSetFactory.create()!!.apply {
                readPatternSet(this)
            }
    }
    
    
    object IntersectionPatternSetCodec : Codec<IntersectionPatternSet> {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. doc/next/6-stdlib/99-minor/encoding/binary/60023.md

    The new [Encode] and [Decode] functions are byte slice equivalents
    to [Read] and [Write].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:58:26 UTC 2024
    - 157 bytes
    - Viewed (0)
  10. platforms/core-configuration/dependency-management-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/dm/AttributeContainerCodecs.kt

    ) : Codec<AttributeContainer> {
    
        override suspend fun WriteContext.encode(value: AttributeContainer) {
            writeAttributes(value)
        }
    
        override suspend fun ReadContext.decode(): AttributeContainer? =
            readAttributesUsing(attributesFactory, managedFactories)
    }
    
    
    class ImmutableAttributesCodec(
        private val attributesFactory: ImmutableAttributesFactory,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top