- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 215 for doDecode (0.25 sec)
-
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) -
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) -
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<->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) -
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) -
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) -
src/encoding/base32/base32_test.go
count, end, err := StdEncoding.decode(dbuf, []byte(p.encoded)) testEqual(t, "Decode(%q) = error %v, want %v", p.encoded, err, error(nil)) testEqual(t, "Decode(%q) = length %v, want %v", p.encoded, count, len(p.decoded)) if len(p.encoded) > 0 { testEqual(t, "Decode(%q) = end %v, want %v", p.encoded, end, (p.encoded[len(p.encoded)-1] == '=')) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 16:25:54 UTC 2024 - 26K bytes - Viewed (0) -
cmd/storage-datatypes_gen_test.go
var buf bytes.Buffer msgp.Encode(&buf, &v) m := v.Msgsize() if buf.Len() > m { t.Log("WARNING: TestEncodeDecodeBaseOptions Msgsize() is inaccurate") } vn := BaseOptions{} err := msgp.Decode(&buf, &vn) if err != nil { t.Error(err) } buf.Reset() msgp.Encode(&buf, &v) err = msgp.NewReader(&buf).Skip() if err != nil { t.Error(err) } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 62.6K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/encoding/binary/60023.md
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:58:26 UTC 2024 - 157 bytes - Viewed (0) -
src/crypto/x509/x509_test.go
func TestCRLCreation(t *testing.T) { block, _ := pem.Decode([]byte(pemPrivateKey)) privRSA, _ := ParsePKCS1PrivateKey(block.Bytes) block, _ = pem.Decode([]byte(pemCertificate)) certRSA, _ := ParseCertificate(block.Bytes) block, _ = pem.Decode([]byte(ed25519CRLKey)) privEd25519, _ := ParsePKCS8PrivateKey(block.Bytes) block, _ = pem.Decode([]byte(ed25519CRLCertificate))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:00:16 UTC 2024 - 163.4K bytes - Viewed (0) -
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)