- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 345 for unmarshaler (0.53 sec)
-
src/encoding/json/stream.go
// of the output, SetEscapeHTML(false) disables this behavior. func (enc *Encoder) SetEscapeHTML(on bool) { enc.escapeHTML = on } // RawMessage is a raw encoded JSON value. // It implements [Marshaler] and [Unmarshaler] and can // be used to delay JSON decoding or precompute a JSON encoding. type RawMessage []byte // MarshalJSON returns m as the JSON encoding of m. func (m RawMessage) MarshalJSON() ([]byte, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 12.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/apitesting/naming/naming.go
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/util/errors" "k8s.io/apimachinery/pkg/util/sets" ) var ( marshalerType = reflect.TypeOf((*json.Marshaler)(nil)).Elem() unmarshalerType = reflect.TypeOf((*json.Unmarshaler)(nil)).Elem() ) // VerifyGroupNames ensures that all groups in the scheme ends with the k8s.io suffix. // Exceptions can be tolerated using the legacyUnsuffixedGroups parameter
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 27 07:07:03 UTC 2022 - 5.8K bytes - Viewed (0) -
cmd/bootstrap-peer-server_gen.go
for za0002, za0003 := range z.MinioEnv { o = msgp.AppendString(o, za0002) o = msgp.AppendString(o, za0003) } return } // UnmarshalMsg implements msgp.Unmarshaler func (z *ServerSystemConfig) UnmarshalMsg(bts []byte) (o []byte, err error) { var field []byte _ = field var zb0001 uint32 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Jan 24 21:36:44 UTC 2024 - 6.4K 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/log/slog/level.go
} // MarshalJSON implements [encoding/json.Marshaler] // by quoting the output of [Level.String]. func (l Level) MarshalJSON() ([]byte, error) { // AppendQuote is sufficient for JSON-encoding all Level strings. // They don't contain any runes that would produce invalid JSON // when escaped. return strconv.AppendQuote(nil, l.String()), nil } // UnmarshalJSON implements [encoding/json.Unmarshaler]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 30 17:34:43 UTC 2023 - 5.6K bytes - Viewed (0) -
cmd/metacache-walk_gen.go
o = msgp.AppendInt(o, z.Limit) // string "DiskID" o = append(o, 0xa6, 0x44, 0x69, 0x73, 0x6b, 0x49, 0x44) o = msgp.AppendString(o, z.DiskID) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *WalkDirOptions) UnmarshalMsg(bts []byte) (o []byte, err error) { var field []byte _ = field var zb0001 uint32 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Nov 21 01:09:35 UTC 2023 - 7K bytes - Viewed (0) -
cmd/site-replication-utils_gen.go
o, err = z.TargetReplicationResyncStatus.MarshalMsg(o) if err != nil { err = msgp.WrapError(err, "TargetReplicationResyncStatus") return } return } // UnmarshalMsg implements msgp.Unmarshaler func (z *SiteResyncStatus) UnmarshalMsg(bts []byte) (o []byte, err error) { var field []byte _ = field var zb0001 uint32 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Nov 14 15:16:40 UTC 2022 - 7.2K bytes - Viewed (0) -
cmd/batch-handlers_gen.go
o = msgp.AppendNil(o) } else { o, err = z.Expire.MarshalMsg(o) if err != nil { err = msgp.WrapError(err, "Expire") return } } return } // UnmarshalMsg implements msgp.Unmarshaler func (z *BatchJobRequest) UnmarshalMsg(bts []byte) (o []byte, err error) { var field []byte _ = field var zb0001 uint32 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon May 06 20:27:52 UTC 2024 - 18.6K bytes - Viewed (0) -
pkg/credentialprovider/config.go
if err = json.Unmarshal(contents, &cfg); err != nil { return nil, errors.New("error occurred while trying to unmarshal json") } return } func readDockerConfigJSONFileFromBytes(contents []byte) (cfg DockerConfig, err error) { var cfgJSON DockerConfigJSON if err = json.Unmarshal(contents, &cfgJSON); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 19 15:11:57 UTC 2023 - 9.3K bytes - Viewed (0) -
internal/config/cache/remote_gen.go
// string "IfPartNumber" o = append(o, 0xac, 0x49, 0x66, 0x50, 0x61, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72) o = msgp.AppendInt(o, z.IfPartNumber) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *CondCheck) UnmarshalMsg(bts []byte) (o []byte, err error) { var field []byte _ = field var zb0001 uint32 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Nov 22 21:46:17 UTC 2023 - 18.9K bytes - Viewed (0)