- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 191 for unmarshaler (0.88 sec)
-
pkg/util/protomarshal/protomarshal.go
"istio.io/istio/pkg/log" ) var ( unmarshaler = jsonpb.Unmarshaler{AllowUnknownFields: true} strictUnmarshaler = jsonpb.Unmarshaler{} ) func Unmarshal(b []byte, m proto.Message) error { return strictUnmarshaler.Unmarshal(bytes.NewReader(b), legacyproto.MessageV1(m)) } func UnmarshalString(s string, m proto.Message) error { return Unmarshal([]byte(s), m) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 12 10:02:09 UTC 2024 - 6.6K bytes - Viewed (0) -
cmd/object-api-interface_gen.go
return } // MarshalMsg implements msgp.Marshaler func (z ExpirationOptions) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 1 // string "Expire" o = append(o, 0x81, 0xa6, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65) o = msgp.AppendBool(o, z.Expire) return } // UnmarshalMsg implements msgp.Unmarshaler
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Mar 08 19:08:18 UTC 2024 - 8.1K bytes - Viewed (0) -
internal/bucket/replication/datatypes_gen.go
if err != nil { err = msgp.WrapError(err) return } return } // MarshalMsg implements msgp.Marshaler func (z StatusType) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) o = msgp.AppendString(o, string(z)) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *StatusType) UnmarshalMsg(bts []byte) (o []byte, err error) { { var zb0001 string
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Mar 08 19:08:18 UTC 2024 - 2.3K bytes - Viewed (0) -
cmd/metrics-v2_gen.go
return } // MarshalMsg implements msgp.Marshaler func (z MetricName) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) o = msgp.AppendString(o, string(z)) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *MetricName) UnmarshalMsg(bts []byte) (o []byte, err error) { { var zb0001 string
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Mar 10 09:15:15 UTC 2024 - 19.2K bytes - Viewed (0) -
pkg/config/schema/ast/ast.go
if r.Group == group && r.Kind == kind { return r } } return nil } // UnmarshalJSON implements json.Unmarshaler func (m *Metadata) UnmarshalJSON(data []byte) error { var in struct { Resources []*Resource `json:"resources"` } if err := json.Unmarshal(data, &in); err != nil { return err } m.Resources = in.Resources seen := sets.New[string]() // Process resources.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 00:31:03 UTC 2024 - 3.3K bytes - Viewed (0) -
operator/pkg/apis/istio/v1alpha1/value_types_json.go
) var _ github_com_golang_protobuf_jsonpb.JSONPBUnmarshaler = &IntOrString{} // UnmarshalJSON implements the json.Unmarshaller interface. func (this *IntOrString) UnmarshalJSON(value []byte) error { if value[0] == '"' { this.Type = int64(intstr.String) var s string err := json.Unmarshal(value, &s) if err != nil { return err } this.StrVal = &wrapperspb.StringValue{Value: s} return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 2.2K bytes - Viewed (0) -
cmd/batch-job-common-types.go
type BatchJobKV struct { line, col int Key string `yaml:"key" json:"key"` Value string `yaml:"value" json:"value"` } var _ yaml.Unmarshaler = &BatchJobKV{} // UnmarshalYAML - BatchJobKV extends default unmarshal to extract line, col information. func (kv *BatchJobKV) UnmarshalYAML(val *yaml.Node) error { type jobKV BatchJobKV var tmp jobKV err := val.Decode(&tmp) if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 11 03:13:30 UTC 2024 - 7.9K bytes - Viewed (0) -
src/encoding/json/decode.go
// the JSON being the JSON literal null. In that case, Unmarshal sets // the pointer to nil. Otherwise, Unmarshal unmarshals the JSON into // the value pointed at by the pointer. If the pointer is nil, Unmarshal // allocates a new value for it to point to. // // To unmarshal JSON into a value implementing [Unmarshaler], // Unmarshal calls that value's [Unmarshaler.UnmarshalJSON] method, including // when the input is a JSON null.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 35.3K bytes - Viewed (0) -
cmd/data-usage-cache_gen.go
err = msgp.WrapError(err) return } return } // MarshalMsg implements msgp.Marshaler func (z dataUsageHash) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) o = msgp.AppendString(o, string(z)) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *dataUsageHash) UnmarshalMsg(bts []byte) (o []byte, err error) { { var zb0001 string
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/erasure-server-pool-rebalance_gen.go
if err != nil { err = msgp.WrapError(err) return } return } // MarshalMsg implements msgp.Marshaler func (z rebalSaveOpts) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) o = msgp.AppendUint8(o, uint8(z)) return } // UnmarshalMsg implements msgp.Unmarshaler func (z *rebalSaveOpts) UnmarshalMsg(bts []byte) (o []byte, err error) { { var zb0001 uint8
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Mar 21 17:21:35 UTC 2024 - 26.8K bytes - Viewed (0)