- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 364 for unmarshalV1 (0.17 sec)
-
cmd/xl-storage-format-v2-legacy.go
package cmd import ( "fmt" "time" "github.com/tinylib/msgp/msgp" ) // unmarshalV unmarshals with a specific header version. func (x *xlMetaV2VersionHeader) unmarshalV(v uint8, bts []byte) (o []byte, err error) { switch v { case 1: return x.unmarshalV1(bts) case 2: x2 := xlMetaV2VersionHeaderV2{xlMetaV2VersionHeader: x} return x2.UnmarshalMsg(bts) case xlHeaderVersion:
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 19 16:43:43 UTC 2024 - 5.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unmarshal/unmarshal.go
} // Classify the callee (without allocating memory). argidx := -1 recv := fn.Type().(*types.Signature).Recv() if fn.Name() == "Unmarshal" && recv == nil { // "encoding/json".Unmarshal // "encoding/xml".Unmarshal // "encoding/asn1".Unmarshal switch fn.Pkg().Path() { case "encoding/json", "encoding/xml", "encoding/asn1": argidx = 1 // func([]byte, interface{}) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.1K bytes - Viewed (0) -
src/cmd/vet/testdata/unmarshal/unmarshal.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 406 bytes - Viewed (0) -
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) -
pkg/util/gogoprotomarshal/protomarshal.go
reader.Reset(js) return m.Unmarshal(reader, pb) } return nil } // ApplyJSONStrict unmarshals a JSON string into a proto message. func ApplyJSONStrict(js string, pb proto.Message) error { reader := strings.NewReader(js) m := jsonpb.Unmarshaler{} return m.Unmarshal(reader, pb)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 1.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/extension_test.go
if err != nil { t.Errorf("1st marshal error: %v", err) } if err = json.Unmarshal(data, &new1); err != nil { t.Errorf("1st unmarshal error: %v", err) } newData, err := json.Marshal(new1) if err != nil { t.Errorf("2st marshal error: %v", err) } if err = json.Unmarshal(newData, &new2); err != nil { t.Errorf("2nd unmarshal error: %v", err) } if !bytes.Equal(data, newData) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 08 22:36:37 UTC 2017 - 2.8K bytes - Viewed (0) -
operator/pkg/apis/istio/common.go
iop := &operator_v1alpha1.IstioOperator{} if allowUnknownField { if err := yaml.Unmarshal([]byte(iopYAML), iop); err != nil { return nil, fmt.Errorf("could not unmarshal: %v", err) } } else { if err := yaml.UnmarshalStrict([]byte(iopYAML), iop); err != nil { return nil, fmt.Errorf("could not unmarshal: %v", err) } } return iop, nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 23 17:19:38 UTC 2022 - 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/crypto/elliptic/elliptic.go
x.FillBytes(compressed[1:]) return compressed } // unmarshaler is implemented by curves with their own constant-time Unmarshal. // // There isn't an equivalent interface for Marshal/MarshalCompressed because // that doesn't involve any mathematical operations, only FillBytes and Bit. type unmarshaler interface { Unmarshal([]byte) (x, y *big.Int) UnmarshalCompressed([]byte) (x, y *big.Int) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 9K 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)