- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 980 for u8marshal (0.13 sec)
-
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/options_test.go
update := UpdateOptions{} f.Fuzz(&update) b, err := json.Marshal(update) if err != nil { t.Fatalf("failed to marshal UpdateOptions (%v): %v", err, update) } patch := PatchOptions{} err = json.Unmarshal(b, &patch) if err != nil { t.Fatalf("failed to unmarshal UpdateOptions into PatchOptions: %v", err) } b, err = json.Marshal(patch) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 04 21:51:48 UTC 2019 - 1.6K bytes - Viewed (0) -
src/crypto/x509/pkcs8.go
func ParsePKCS8PrivateKey(der []byte) (key any, err error) { var privKey pkcs8 if _, err := asn1.Unmarshal(der, &privKey); err != nil { if _, err := asn1.Unmarshal(der, &ecPrivateKey{}); err == nil { return nil, errors.New("x509: failed to parse private key (use ParseECPrivateKey instead for this key format)") } if _, err := asn1.Unmarshal(der, &pkcs1PrivateKey{}); err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 5.8K bytes - Viewed (0) -
src/crypto/elliptic/elliptic_test.go
t.Errorf("IsOnCurve(∞) == true") } if xx, yy := Unmarshal(curve, Marshal(curve, x0, y0)); xx != nil || yy != nil { t.Errorf("Unmarshal(Marshal(∞)) did not return an error") } // We don't test UnmarshalCompressed(MarshalCompressed(∞)) because there are // two valid points with x = 0. if xx, yy := Unmarshal(curve, []byte{0x00}); xx != nil || yy != nil { t.Errorf("Unmarshal(∞) did not return an error") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 27 02:00:03 UTC 2023 - 11.6K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/marshal_test.go
} for _, c := range cases { var result JSONSchemaPropsOrBoolHolder if err := json.Unmarshal([]byte(c.input), &result); err != nil { t.Errorf("Failed to unmarshal input '%v': %v", c.input, err) } if !reflect.DeepEqual(result, c.result) { t.Errorf("Failed to unmarshal input '%v': expected %+v, got %+v", c.input, c.result, result) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 15 16:26:13 UTC 2019 - 7.1K bytes - Viewed (0) -
pkg/util/gogoprotomarshal/protomarshal.go
reader.Reset(js) return m.Unmarshal(reader, pb) } return nil } // ApplyJSONStrict unmarshals a JSON string into a proto message. func ApplyJSONStrict(js string, pb proto.Message) error { reader := strings.NewReader(js) m := jsonpb.Unmarshaler{} return m.Unmarshal(reader, pb)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 1.4K bytes - Viewed (0) -
operator/pkg/apis/istio/common.go
iop := &operator_v1alpha1.IstioOperator{} if allowUnknownField { if err := yaml.Unmarshal([]byte(iopYAML), iop); err != nil { return nil, fmt.Errorf("could not unmarshal: %v", err) } } else { if err := yaml.UnmarshalStrict([]byte(iopYAML), iop); err != nil { return nil, fmt.Errorf("could not unmarshal: %v", err) } } return iop, nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 23 17:19:38 UTC 2022 - 2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go
cborFromOriginal, err := modePair.enc.Marshal(original) if err != nil { t.Fatalf("unexpected error from Marshal of original: %v", err) } var iface interface{} if err := modePair.dec.Unmarshal(cborFromOriginal, &iface); err != nil { t.Fatalf("unexpected error from Unmarshal into %T: %v", &iface, err) } cborFromIface, err := modePair.enc.Marshal(iface) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 21:48:12 UTC 2024 - 7.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/json/json_test.go
{ var v *[]interface{} err := Unmarshal([]byte(`[]`), v) goerr := gojson.Unmarshal([]byte(`[]`), v) if err == nil || goerr == nil || err.Error() != goerr.Error() { t.Fatalf("expected error matching stdlib, got %v, %v", err, goerr) } else { t.Log(err) } } { var v *map[string]interface{} err := Unmarshal([]byte(`{}`), v) goerr := gojson.Unmarshal([]byte(`{}`), v)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 28 08:02:09 UTC 2022 - 9.3K bytes - Viewed (0) -
src/encoding/asn1/marshal_test.go
// a, b, c, aa, bb, cc output, err := Marshal(testStruct) if err != nil { t.Errorf("%v", err) } expectedOrder := []string{"a", "b", "c", "aa", "bb", "cc"} var resultStruct struct { Strings []string `asn1:"set"` } rest, err := Unmarshal(output, &resultStruct) if err != nil { t.Errorf("%v", err) } if len(rest) != 0 { t.Error("Unmarshal returned extra garbage") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 10K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/marshal_test.go
} for _, c := range cases { var result JSONSchemaPropsOrBoolHolder if err := json.Unmarshal([]byte(c.input), &result); err != nil { t.Errorf("Failed to unmarshal input '%v': %v", c.input, err) } if !reflect.DeepEqual(result, c.result) { t.Errorf("Failed to unmarshal input '%v': expected %+v, got %+v", c.input, c.result, result) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 10 12:12:24 UTC 2018 - 7.1K bytes - Viewed (0)