- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 980 for u8marshal (0.12 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/json/json.go
return json.NewEncoder(w) } // Marshal delegates to json.Marshal // It is only here so this package can be a drop-in for common encoding/json uses func Marshal(v interface{}) ([]byte, error) { return json.Marshal(v) } // limit recursive depth to prevent stack overflow errors const maxDepth = 10000 // Unmarshal unmarshals the given data. // Object keys are case-sensitive.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 20 16:49:23 UTC 2021 - 3.4K bytes - Viewed (0) -
src/internal/chacha8rand/chacha8.go
break } s.Refill() } } s.Init64(seed) } // Marshal marshals the state into a byte slice. // Marshal and Unmarshal are functions, not methods, // so that they will not be linked into the runtime // when it uses the State struct, since the runtime // does not need these. func Marshal(s *State) []byte { data := make([]byte, 6*8) copy(data, "chacha8:")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:47:29 UTC 2024 - 4.4K bytes - Viewed (0) -
operator/pkg/util/yaml.go
ao, bo := make(map[string]any), make(map[string]any) if err := yaml.Unmarshal([]byte(a), &ao); err != nil { return err.Error() } if err := yaml.Unmarshal([]byte(b), &bo); err != nil { return err.Error() } ay, err := yaml.Marshal(ao) if err != nil { return err.Error() } by, err := yaml.Marshal(bo) if err != nil { return err.Error() }
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/encoding/json/bench_test.go
var f float64 for pb.Next() { if err := Unmarshal(data, &f); err != nil { b.Fatalf("Unmarshal error: %v", err) } } }) } func BenchmarkUnmarshalInt64(b *testing.B) { b.ReportAllocs() data := []byte(`3`) b.RunParallel(func(pb *testing.PB) { var x int64 for pb.Next() { if err := Unmarshal(data, &x); err != nil { b.Fatalf("Unmarshal error: %v", err) } } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:00:17 UTC 2024 - 12.5K bytes - Viewed (0) -
src/go/doc/comment/testdata/linklist.txt
-- input -- Did you know? - [encoding/json.Marshal] is a doc link. So is [encoding/json.Unmarshal]. -- text -- Did you know? - encoding/json.Marshal is a doc link. So is encoding/json.Unmarshal. -- markdown -- Did you know? - [encoding/json.Marshal](https://pkg.go.dev/encoding/json#Marshal) is a doc link. So is [encoding/json.Unmarshal](https://pkg.go.dev/encoding/json#Unmarshal). -- html -- <p>Did you know? <ul>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 30 21:57:02 UTC 2022 - 657 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types_test.go
for _, input := range cases { data, err := input.Marshal() if err != nil { t.Fatalf("Failed to marshal input: '%v': %v", input, err) } resource := APIResource{} if err := resource.Unmarshal(data); err != nil { t.Fatalf("Failed to unmarshal output: '%v': %v", input, err) } if !reflect.DeepEqual(input, resource) { t.Errorf("Marshal->Unmarshal is not idempotent: '%v' vs '%v'", input, resource) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 20 16:49:23 UTC 2021 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/duration_test.go
for i, c := range cases { input := DurationHolder{c.input} jsonMarshalled, err := json.Marshal(&input) if err != nil { t.Errorf("%d-1: Failed to marshal input: '%v': %v", i, input, err) } var result DurationHolder if err := yaml.Unmarshal(jsonMarshalled, &result); err != nil { t.Errorf("%d-2: Failed to unmarshal '%+v': %v", i, string(jsonMarshalled), err) } if input.D != result.D {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 07 18:17:32 UTC 2018 - 4.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_test.go
for _, c := range cases { input := c.input data, err := input.Marshal() if err != nil { t.Fatalf("Failed to marshal input: '%v': %v", input, err) } time := MicroTime{} if err := time.Unmarshal(data); err != nil { t.Fatalf("Failed to unmarshal output: '%v': %v", input, err) } if !reflect.DeepEqual(input, time) { t.Errorf("Marshal->Unmarshal is not idempotent: '%v' vs '%v'", input, time) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 11.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/group_version_test.go
// test golang lib's JSON codec if err := gojson.Unmarshal([]byte(c.input), &result); err != nil { t.Errorf("JSON codec failed to unmarshal input '%v': %v", c.input, err) } if !reflect.DeepEqual(result.GV, c.expect) { t.Errorf("JSON codec failed to unmarshal input '%s': expected %+v, got %+v", c.input, c.expect, result.GV) } // test the utiljson codec if err := utiljson.Unmarshal(c.input, &result); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 20 16:49:23 UTC 2021 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go
for _, c := range cases { input := c.input data, err := input.Marshal() if err != nil { t.Fatalf("Failed to marshal input: '%v': %v", input, err) } time := Time{} if err := time.Unmarshal(data); err != nil { t.Fatalf("Failed to unmarshal output: '%v': %v", input, err) } if !reflect.DeepEqual(input, time) { t.Errorf("Marshal->Unmarshal is not idempotent: '%v' vs '%v'", input, time) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 9.4K bytes - Viewed (0)