- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,057 for qDecode (0.11 sec)
-
test/fixedbugs/issue57955.go
package main func main() { Decode[int16](nil) Decode[uint16](nil) Decode[float64](nil) } func DecodeInt16(b []byte) (int16, int) { return 0, 0 } func DecodeUint16(b []byte) (uint16, int) { return 0, 0 } func DecodeFloat64(b []byte) (float64, int) { return 0, 0 } func Decode[T any](b []byte) (T, int) { switch any(*new(T)).(type) { case int16:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 01 19:29:08 UTC 2023 - 794 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/streaming/streaming_test.go
d := &fakeDecoder{} dec := NewDecoder(r, d) if _, _, err := dec.Decode(nil, nil); err != nil || !bytes.Equal(d.got, frames[0]) { t.Fatalf("unexpected %v %v", err, len(d.got)) } if _, _, err := dec.Decode(nil, nil); err != nil || !bytes.Equal(d.got, frames[1]) { t.Fatalf("unexpected %v %v", err, len(d.got)) } if _, _, err := dec.Decode(nil, nil); err != ErrObjectTooLarge || !bytes.Equal(d.got, frames[1]) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 14 11:43:39 UTC 2018 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/lsarpc.java
_src = _src.deferred; root_directory.decode(_src); } if (_object_namep != 0) { if (object_name == null) { /* YOYOYO */ object_name = new rpc.unicode_string(); } _src = _src.deferred; object_name.decode(_src); } if (_security_quality_of_servicep != 0) {
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 33K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/kryo/KryoBackedCodecTest.groovy
closure.call(decoder) } def "can encode and decode empty byte stream"() { when: def bytes = encode { Encoder encoder -> encoder.encodeChunked {} encoder.writeString("done") } then: decode(bytes) { Decoder decoder -> decoder.decodeChunked {} assert decoder.readString() == "done"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 5.2K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
} @Test fun `cannot decode malformed utc time`() { val bytes = "170d3139313231362333303231305a".decodeHex() assertFailsWith<ProtocolException> { Adapters.UTC_TIME.fromDer(bytes) }.also { expected -> assertThat(expected).hasMessage("Failed to parse UTCTime 191216#30210Z") } } @Test fun `cannot decode generalized time with offset`() {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 31.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/user/exentity/User.java
return stream(getRoles()).get(stream -> stream.map(this::decode).toArray(n -> new String[n])); } @Override public String[] getGroupNames() { return stream(getGroups()).get(stream -> stream.map(this::decode).toArray(n -> new String[n])); } private String decode(final String value) { return new String(Base64.getDecoder().decode(value), Constants.CHARSET_UTF_8); } @Override
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.8K bytes - Viewed (0) -
src/encoding/gob/example_test.go
if err != nil { log.Fatal("encode error:", err) } // Decode (receive) and print the values. var q Q err = dec.Decode(&q) if err != nil { log.Fatal("decode error 1:", err) } fmt.Printf("%q: {%d, %d}\n", q.Name, *q.X, *q.Y) err = dec.Decode(&q) if err != nil { log.Fatal("decode error 2:", err) } fmt.Printf("%q: {%d, %d}\n", q.Name, *q.X, *q.Y) // Output:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 02 00:13:47 UTC 2016 - 1.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/codec_test.go
t.Errorf("Should allow empty decode: %v", err) } if _, _, err := codec.Decode([]byte(``), &schema.GroupVersionKind{Kind: "ExternalInternalSame"}, nil); err == nil { t.Errorf("Did not give error for empty data with only kind default") } if _, _, err := codec.Decode([]byte(`{"myVersionKey":"v1"}`), &schema.GroupVersionKind{Kind: "ExternalInternalSame"}, nil); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 13.2K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/netdfs.java
this.info = new DfsEnumStruct(); } this.info.decode(_src); } int _totalentriesp = _src.dec_ndr_long(); if ( _totalentriesp != 0 ) { this.totalentries.decode(_src); } this.retval = _src.dec_ndr_long(); } }
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 20:40:13 UTC 2019 - 16.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unmarshal/unmarshal.go
case "encoding/json", "encoding/xml", "encoding/asn1": argidx = 1 // func([]byte, interface{}) } } else if fn.Name() == "Decode" && recv != nil { // (*"encoding/json".Decoder).Decode // (* "encoding/gob".Decoder).Decode // (* "encoding/xml".Decoder).Decode _, named := typesinternal.ReceiverNamed(recv) if tname := named.Obj(); tname.Name() == "Decoder" { switch tname.Pkg().Path() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.1K bytes - Viewed (0)