- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 276 for marshaled (0.21 sec)
-
src/net/netip/netip_test.go
} if ip != (Addr{}) { t.Errorf("Unmarshal(%q) is not the zero Addr", orig) } jsb, err := json.Marshal(ip) if err != nil { t.Fatalf("Marshal(%v) got error %v", ip, err) } back := string(jsb) if back != orig { t.Errorf("Marshal(Unmarshal(%q)) got %q, want %q", orig, back, orig) } } func TestAddrFrom16(t *testing.T) { tests := []struct { name string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:10:01 UTC 2024 - 54.3K bytes - Viewed (0) -
staging/src/k8s.io/api/policy/v1beta1/generated.pb.go
0x00, 0xff, 0xff, 0x3c, 0xbe, 0x15, 0xfb, 0x02, 0x09, 0x00, 0x00, } func (m *Eviction) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Eviction) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 45.2K bytes - Viewed (0) -
src/cmd/go/internal/modinfo/info.go
type ModuleError struct { Err string // error text } type moduleErrorNoMethods ModuleError // UnmarshalJSON accepts both {"Err":"text"} and "text", // so that the output of go mod download -json can still // be unmarshaled into a ModulePublic during -reuse processing. func (e *ModuleError) UnmarshalJSON(data []byte) error { if len(data) > 0 && data[0] == '"' { return json.Unmarshal(data, &e.Err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 3.1K bytes - Viewed (0) -
internal/grid/types.go
if *u != nil { for key := range *u { delete(*u, key) } val := map[string][]string(*u) urlValuesPool.Put(val) *u = nil } } // MarshalMsg implements msgp.Marshaler func (u URLValues) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, u.Msgsize()) o = msgp.AppendMapHeader(o, uint32(len(u))) for zb0006, zb0007 := range u { o = msgp.AppendString(o, zb0006)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Apr 01 23:42:09 UTC 2024 - 15.4K bytes - Viewed (0) -
staging/src/k8s.io/api/scheduling/v1/generated.pb.go
} func (m *PriorityClass) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PriorityClass) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 18.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go
} for _, c := range cases { input := TimeHolder{c.input} result, err := yaml.Marshal(&input) if err != nil { t.Errorf("Failed to marshal input: '%v': %v", input, err) } if string(result) != c.result { t.Errorf("Failed to marshal input: '%v': expected %+v, got %q", input, c.result, string(result)) } } } func TestTimeUnmarshalYAML(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 9.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/proxy/websocket.go
tty: opts.Tty, resizeStream: streams[constants.StreamResize], } // writeStatus returns a WriteStatusFunc that marshals a given api Status // as json in the error channel. ctx.writeStatus = func(status *apierrors.StatusError) error { bs, err := json.Marshal(status.Status()) if err != nil { return err } // Write status error to error stream with deadline.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 6.2K bytes - Viewed (0) -
staging/src/k8s.io/api/networking/v1/generated.pb.go
0x48, 0x15, 0x00, 0x00, } func (m *HTTPIngressPath) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *HTTPIngressPath) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 158.2K bytes - Viewed (0) -
cmd/data-usage-cache_gen.go
return } err = en.WriteInt(za0002.NumObjects) if err != nil { err = msgp.WrapError(err, "Tiers", za0001, "NumObjects") return } } return } // MarshalMsg implements msgp.Marshaler func (z *allTierStats) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 1 // string "ts" o = append(o, 0x81, 0xa2, 0x74, 0x73)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Mar 21 17:21:35 UTC 2024 - 100.8K bytes - Viewed (0) -
cmd/metrics-v2_gen.go
package cmd // Code generated by github.com/tinylib/msgp DO NOT EDIT. import ( "github.com/tinylib/msgp/msgp" ) // MarshalMsg implements msgp.Marshaler func (z *MetricDescription) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 5 // string "Namespace" o = append(o, 0x85, 0xa9, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65) o = msgp.AppendString(o, string(z.Namespace))
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Mar 10 09:15:15 UTC 2024 - 19.2K bytes - Viewed (0)