- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 1,057 for qDecode (0.16 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_test.go
d.nestedCalled = true return d.nestedErr } func TestNestedDecode(t *testing.T) { n := &testNestedDecodable{nestedErr: fmt.Errorf("unable to decode")} decoder := &mockSerializer{obj: n} codec := NewCodec(nil, decoder, nil, nil, nil, nil, nil, nil, "TestNestedDecode") if _, _, err := codec.Decode([]byte(`{}`), nil, n); err != n.nestedErr { t.Errorf("unexpected error: %v", err) } if !n.nestedCalled {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 23 17:04:19 UTC 2022 - 12.5K bytes - Viewed (0) -
src/image/gif/fuzz_test.go
return } img, typ, err := image.Decode(bytes.NewReader(b)) if err != nil || typ != "gif" { return } for q := 1; q <= 256; q++ { var w bytes.Buffer err := Encode(&w, img, &Options{NumColors: q}) if err != nil { t.Fatalf("failed to encode valid image: %s", err) } img1, err := Decode(&w) if err != nil { t.Fatalf("failed to decode roundtripped image: %s", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 15:57:34 UTC 2022 - 1.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/codec.go
} return buf.Bytes(), nil } // Decode is a convenience wrapper for decoding data into an Object. func Decode(d Decoder, data []byte) (Object, error) { obj, _, err := d.Decode(data, nil, nil) return obj, err } // DecodeInto performs a Decode into the provided object. func DecodeInto(d Decoder, data []byte, into Object) error { out, gvk, err := d.Decode(data, nil, into) if err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 03:20:30 UTC 2023 - 12.1K bytes - Viewed (0) -
platforms/jvm/platform-jvm/src/main/java/org/gradle/api/java/archives/ManifestMergeSpec.java
/** * The character set used to decode the merged manifest content. * Defaults to UTF-8. * * @return the character set used to decode the merged manifest content * @since 2.14 */ String getContentCharset(); /** * The character set used to decode the merged manifest content. * * @param contentCharset the character set used to decode the merged manifest content
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 3K bytes - Viewed (0) -
src/encoding/base64/base64_test.go
encoded := tt.conv(p.encoded) dbuf := make([]byte, tt.enc.DecodedLen(len(encoded))) count, err := tt.enc.Decode(dbuf, []byte(encoded)) testEqual(t, "Decode(%q) = error %v, want %v", encoded, err, error(nil)) testEqual(t, "Decode(%q) = length %v, want %v", encoded, count, len(p.decoded)) testEqual(t, "Decode(%q) = %q, want %q", encoded, string(dbuf[0:count]), p.decoded) dbuf, err = tt.enc.DecodeString(encoded)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Sep 03 18:57:29 UTC 2023 - 15.9K bytes - Viewed (0) -
src/encoding/json/stream_test.go
foo := struct { Foo string }{} d := NewDecoder(res.Body) err = d.Decode(&foo) if err != nil { t.Fatalf("Decode error: %v", err) } if foo.Foo != "bar" { t.Errorf(`Decode: got %q, want "bar"`, foo.Foo) } // make sure we get the EOF the second time err = d.Decode(&foo) if err != io.EOF { t.Errorf("Decode error:\n\tgot: %v\n\twant: io.EOF", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 16:00:37 UTC 2023 - 12.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder_test.go
t.Fatalf("unexpected error: %v", err) } if fmt.Sprintf("%#v", obj) != `yaml.generic{"stuff":1}` { t.Errorf("unexpected object: %#v", obj) } obj = generic{} if err := s.Decode(&obj); err != nil { t.Fatalf("unexpected error: %v", err) } if fmt.Sprintf("%#v", obj) != `yaml.generic{"stuff":2}` { t.Errorf("unexpected object: %#v", obj) } obj = generic{} err := s.Decode(&obj)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 07:29:34 UTC 2023 - 12.4K bytes - Viewed (0) -
src/image/png/reader_test.go
t.Errorf("DecodeConfig: got %d, want 0", alpha) } img, err := Decode(bytes.NewReader(src)) if err != nil { t.Fatalf("Decode: %v", err) } else if _, _, _, alpha := img.ColorModel().(color.Palette)[0].RGBA(); alpha != 0 { t.Errorf("Decode: got %d, want 0", alpha) } } func benchmarkDecode(b *testing.B, filename string, bytesPerPixel int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 24 12:12:12 UTC 2022 - 28.5K bytes - Viewed (0) -
common-protos/k8s.io/api/apiserverinternal/v1alpha1/generated.proto
// Package-wide variables from generator "generated". option go_package = "k8s.io/api/apiserverinternal/v1alpha1"; // An API server instance reports the version it can decode and the version it // encodes objects to when persisting objects in the backend. message ServerStorageVersion { // The ID of the reporting API server. optional string apiServerID = 1;
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 4.1K bytes - Viewed (0) -
src/image/gif/writer_test.go
} m0 = m0.(*image.Paletted).SubImage(image.Rect(0, 0, 50, 30)) var buf bytes.Buffer err = Encode(&buf, m0, nil) if err != nil { t.Fatalf("Encode: %v", err) } m1, err := Decode(&buf) if err != nil { t.Fatalf("Decode: %v", err) } if m0.Bounds() != m1.Bounds() { t.Fatalf("bounds differ: %v and %v", m0.Bounds(), m1.Bounds()) } if averageDelta(m0, m1) != 0 { t.Fatalf("images differ") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 19K bytes - Viewed (0)