- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 251 for decode (0.13 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode.go
// For parity with JSON, strings can be decoded into time.Time if they are RFC 3339 // timestamps. ByteStringToTime: cbor.ByteStringToTimeAllowed, }.DecMode() if err != nil { panic(err) } return decode }() // DecodeLax is derived from Decode, but does not complain about unknown fields in the input. var DecodeLax cbor.DecMode = func() cbor.DecMode { opts := Decode.DecOptions()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 14:03:36 UTC 2024 - 3.9K bytes - Viewed (0) -
platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Codec.kt
inline fun <T> ReadContext.decodePreservingIdentity(decode: ReadContext.(Int) -> T): T = decodePreservingIdentity(isolate.identities, decode) inline fun <T : Any> ReadContext.decodePreservingSharedIdentity(decode: ReadContext.(Int) -> T): T = decodePreservingIdentity(sharedIdentities) { id -> decode(id).also { sharedIdentities.putInstance(id, it) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 7.9K bytes - Viewed (0) -
platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Combinators.kt
fun <T> singleton(value: T): Codec<T> = SingletonCodec(value) fun <T> codec( encode: suspend WriteContext.(T) -> Unit, decode: suspend ReadContext.() -> T? ): Codec<T> = object : Codec<T> { override suspend fun WriteContext.encode(value: T) = encode(value) override suspend fun ReadContext.decode(): T? = decode() } inline fun <reified T> IsolateContext.ownerService() = ownerService(T::class.java)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:59:39 UTC 2024 - 8.4K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/IsolatedCodecs.kt
val value = read() as Enum<*> return IsolatedEnumValueSnapshot(value) } } object IsolatedSetCodec : Codec<IsolatedSet> { override suspend fun WriteContext.encode(value: IsolatedSet) { write(value.elements) } override suspend fun ReadContext.decode(): IsolatedSet { val elements = readNonNull<ImmutableSet<Isolatable<*>>>()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 7.3K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/ProviderCodecs.kt
else -> throw IllegalStateException("Unexpected provider value") } } class FlowProvidersCodec( private val flowProviders: FlowProviders ) : Codec<BuildWorkResultProvider> { override suspend fun WriteContext.encode(value: BuildWorkResultProvider) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 17.2K bytes - Viewed (0) -
security/pkg/pki/util/crypto.go
// trailing newline characters removed func PemCertBytestoString(caCerts []byte) []string { certs := []string{} var cert string pemBlock := caCerts for block, rest := pem.Decode(pemBlock); block != nil && len(block.Bytes) != 0; block, rest = pem.Decode(pemBlock) { if len(rest) == 0 { cert = strings.TrimPrefix(strings.TrimSuffix(string(pemBlock), "\n"), "\n") certs = append(certs, cert) break }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 13:00:07 UTC 2024 - 5.3K bytes - Viewed (0) -
src/image/gif/writer_test.go
if err != nil { t.Fatalf("readImg: %v", err) } // Case 1: Encode a wrapped image.Image buf := new(bytes.Buffer) w0 := offsetImage{m0, m0.Bounds()} err = Encode(buf, w0, nil) if err != nil { t.Fatalf("Encode: %v", err) } w1, err := Decode(buf) if err != nil { t.Fatalf("Dencode: %v", err) } avgDelta := averageDelta(m0, w1) if avgDelta > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 19K bytes - Viewed (0) -
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) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/JavaObjectSerializationCodec.kt
}.reversed() private inline fun ReadContext.decodingBeanWithId(id: Int, decode: (Any, Class<*>, BeanStateReader) -> Unit): Any { val beanType = readClass() return withBeanTrace(beanType) { val beanStateReader = beanStateReaderFor(beanType) beanStateReader.run { newBeanWithId(false, id) }.also { bean -> decode(bean, beanType, beanStateReader) } } } private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 11.4K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/FileCodecs.kt
override suspend fun WriteContext.encode(value: Directory) { writeFile(value.asFile) } 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) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 1.6K bytes - Viewed (0)