- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 473 for marshaled (0.26 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/marshal.go
} *s = nw return nil } func (s JSONSchemaPropsOrStringArray) MarshalJSON() ([]byte, error) { if len(s.Property) > 0 { return json.Marshal(s.Property) } if s.Schema != nil { return json.Marshal(s.Schema) } return []byte("null"), nil } func (s *JSONSchemaPropsOrStringArray) UnmarshalJSON(data []byte) error { var first byte if len(data) > 1 { first = data[0]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 13 21:12:46 UTC 2021 - 2.9K bytes - Viewed (0) -
cmd/xl-storage-format-v2.go
bts, err = tmp.unmarshalV(1, bts) if err != nil { return msgp.WrapError(err, "Versions", za0001) } end := len(allMeta) - len(bts) // We reference the marshaled data, so we don't have to re-marshal. x.versions[za0001] = xlMetaV2ShallowVersion{ header: tmp.header(), meta: allMeta[start:end], } } default: bts, err = msgp.Skip(bts)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 29 19:14:09 UTC 2024 - 63.6K bytes - Viewed (0) -
pkg/util/protomarshal/protomarshal.go
Multiline: true, Indent: indent, }.Marshal(msg) } // MarshalProtoNames marshals a proto to canonical JSON original protobuf names func MarshalProtoNames(msg proto.Message) ([]byte, error) { if msg == nil { return nil, errors.New("unexpected nil message") } // Marshal from proto to json bytes m := jsonpb.Marshaler{OrigName: true} buf := &bytes.Buffer{}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 12 10:02:09 UTC 2024 - 6.6K bytes - Viewed (0) -
src/crypto/tls/conn.go
// the record layer state. If transcript is non-nil the marshaled message is // written to it. func (c *Conn) writeHandshakeRecord(msg handshakeMessage, transcript transcriptHash) (int, error) { c.out.Lock() defer c.out.Unlock() data, err := msg.marshal() if err != nil { return 0, err } if transcript != nil { transcript.Write(data) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 51.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/conversion/queryparams/convert.go
// Return unless we implement a custom query marshaler if !value.CanInterface() { return reflect.Value{}, false } marshaler, ok := value.Interface().(Marshaler) if !ok { if !isPointerKind(value.Kind()) && value.CanAddr() { marshaler, ok = value.Addr().Interface().(Marshaler) if !ok { return reflect.Value{}, false } } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 25 16:23:43 UTC 2022 - 4.9K bytes - Viewed (0) -
cmd/kubeadm/app/util/marshal.go
"k8s.io/kubernetes/cmd/kubeadm/app/constants" ) // MarshalToYaml marshals an object into yaml. func MarshalToYaml(obj runtime.Object, gv schema.GroupVersion) ([]byte, error) { return MarshalToYamlForCodecs(obj, gv, clientsetscheme.Codecs) } // MarshalToYamlForCodecs marshals an object into yaml using the specified codec // TODO: Is specifying the gv really needed here?
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 5.8K bytes - Viewed (0) -
src/math/big/intmarsh.go
return fmt.Errorf("math/big: cannot unmarshal %q into a *big.Int", text) } return nil } // The JSON marshalers are only here for API backward compatibility // (programs that explicitly look for these two methods). JSON works // fine with the TextMarshaler only. // MarshalJSON implements the [encoding/json.Marshaler] interface. func (x *Int) MarshalJSON() ([]byte, error) { if x == nil { return []byte("null"), nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/duration.go
return err } pd, err := time.ParseDuration(str) if err != nil { return err } d.Duration = pd return nil } // MarshalJSON implements the json.Marshaler interface. func (d Duration) MarshalJSON() ([]byte, error) { return json.Marshal(d.Duration.String()) } // ToUnstructured implements the value.UnstructuredConverter interface. func (d Duration) ToUnstructured() interface{} { return d.Duration.String() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Feb 08 00:11:06 UTC 2020 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/marshal.go
} *s = nw return nil } func (s JSONSchemaPropsOrStringArray) MarshalJSON() ([]byte, error) { if len(s.Property) > 0 { return json.Marshal(s.Property) } if s.Schema != nil { return json.Marshal(s.Schema) } return []byte("null"), nil } func (s *JSONSchemaPropsOrStringArray) UnmarshalJSON(data []byte) error { var first byte if len(data) > 1 { first = data[0]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 13 21:12:46 UTC 2021 - 2.9K bytes - Viewed (0) -
src/crypto/sha512/sha512_test.go
"crypto/internal/boring" "crypto/rand" "encoding" "encoding/hex" "fmt" "hash" "io" "testing" ) type sha512Test struct { out string in string halfState string // marshaled hash state after first half of in written, used by TestGoldenMarshal } var golden224 = []sha512Test{ { "6ed0dd02806fa89e25de060c19d3ac86cabb87d6a0ddd05c333b84f4", "",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 03 21:17:08 UTC 2023 - 105.6K bytes - Viewed (0)