- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 755 for unmarshalV1 (0.21 sec)
-
src/crypto/elliptic/elliptic.go
x.FillBytes(compressed[1:]) return compressed } // unmarshaler is implemented by curves with their own constant-time Unmarshal. // // There isn't an equivalent interface for Marshal/MarshalCompressed because // that doesn't involve any mathematical operations, only FillBytes and Bit. type unmarshaler interface { Unmarshal([]byte) (x, y *big.Int) UnmarshalCompressed([]byte) (x, y *big.Int) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 9K bytes - Viewed (0) -
operator/pkg/util/yaml.go
return protomarshal.ToYAML(val) } // UnmarshalWithJSONPB unmarshals y into out using gogo jsonpb (required for many proto defined structs). func UnmarshalWithJSONPB(y string, out proto.Message, allowUnknownField bool) error { // Treat nothing as nothing. If we called jsonpb.Unmarshaler it would return the same. if y == "" { return nil } jb, err := yaml.YAMLToJSON([]byte(y))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Jan 14 02:41:27 UTC 2023 - 7.2K bytes - Viewed (0) -
src/crypto/tls/handshake_messages_test.go
// have parsable prefixes because the extension // data is optional and the length of the // Finished varies across versions. for j := 0; j < len(marshaled); j++ { if m.unmarshal(marshaled[0:j]) { t.Errorf("#%d unmarshaled a prefix of length %d of %#v", i, j, m1) break } } } } }) } } func TestFuzz(t *testing.T) { rand := rand.New(rand.NewSource(0))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 15.7K bytes - Viewed (0) -
pkg/config/schema/ast/ast.go
if r.Group == group && r.Kind == kind { return r } } return nil } // UnmarshalJSON implements json.Unmarshaler func (m *Metadata) UnmarshalJSON(data []byte) error { var in struct { Resources []*Resource `json:"resources"` } if err := json.Unmarshal(data, &in); err != nil { return err } m.Resources = in.Resources seen := sets.New[string]() // Process resources.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 00:31:03 UTC 2024 - 3.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go
var p map[string]interface{} if err := json.Unmarshal([]byte(actual), &p); err != nil { t.Errorf("unexpected error unmarshaling patch annotation: %v", err) } if p["configuration"] != tc.config { t.Errorf("unmarshaled configuration doesn't match, want: %s, got: %v", tc.config, p["configuration"]) } if p["webhook"] != tc.webhook {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 4.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go
"fmt" "io" "strings" "unicode" jsonutil "k8s.io/apimachinery/pkg/util/json" "sigs.k8s.io/yaml" ) // Unmarshal unmarshals the given data // If v is a *map[string]interface{}, *[]interface{}, or *interface{} numbers // are converted to int64 or float64 func Unmarshal(data []byte, v interface{}) error { preserveIntFloat := func(d *json.Decoder) *json.Decoder { d.UseNumber() return d }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 19 21:24:36 UTC 2021 - 10.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/direct/direct.go
// types that implement cbor.Marshaler and cbor.Unmarshaler should use these functions. package direct import ( "k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes" ) func Marshal(src interface{}) ([]byte, error) { return modes.Encode.Marshal(src) } func Unmarshal(src []byte, dst interface{}) error { return modes.Decode.Unmarshal(src, dst) } func Diagnose(src []byte) (string, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 15 15:31:10 UTC 2024 - 1.2K bytes - Viewed (0) -
pilot/test/xdstest/extract.go
dst := any(new(T)).(proto.Message) if err := a.UnmarshalTo(dst); err != nil { var z *T return z } return any(dst).(*T) } func UnmarshalAny[T any](t test.Failer, a *anypb.Any) *T { dst := any(new(T)).(proto.Message) if err := a.UnmarshalTo(dst); err != nil { t.Fatalf("failed to unmarshal to %T: %v", dst, err) } return any(dst).(*T) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 19 22:42:42 UTC 2023 - 13.9K bytes - Viewed (0) -
istioctl/pkg/util/configdump/secret.go
secretDump := &admin.SecretsConfigDump{} err = secretDumpAny.UnmarshalTo(secretDump) if err != nil { return nil, err } return secretDump, nil } // GetRootCAFromSecretConfigDump retrieves root CA from a secret config dump wrapper func (w *Wrapper) GetRootCAFromSecretConfigDump(anySec *anypb.Any) (string, error) { var secret extapi.Secret if err := anySec.UnmarshalTo(&secret); err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Feb 25 04:09:53 UTC 2023 - 2.2K bytes - Viewed (0) -
src/internal/fuzz/encoding_test.go
if b2 != b1 { t.Fatalf("unmarshaled %v, want %v:\n%s", b2, b1, buf) } } } func TestInt8RoundTrip(t *testing.T) { for x := -128; x < 128; x++ { i1 := int8(x) buf := marshalCorpusFile(i1) vs, err := unmarshalCorpusFile(buf) if err != nil { t.Fatal(err) } i2 := vs[0].(int8) if i2 != i1 { t.Fatalf("unmarshaled %v, want %v:\n%s", i2, i1, buf) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 00:20:34 UTC 2024 - 8.2K bytes - Viewed (0)