- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 90 for marshaled (4.24 sec)
-
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/runtime/serializer/cbor/direct/direct.go
// types that implement cbor.Marshaler and cbor.Unmarshaler should use these functions. package direct import ( "k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes" ) func Marshal(src interface{}) ([]byte, error) { return modes.Encode.Marshal(src) } func Unmarshal(src []byte, dst interface{}) error { return modes.Decode.Unmarshal(src, dst)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 15 15:31:10 UTC 2024 - 1.2K bytes - Viewed (0) -
operator/pkg/apis/istio/v1alpha1/value_types_json.go
return nil } func (this *IntOrString) MarshalJSONPB(_ *github_com_golang_protobuf_jsonpb.Marshaler) ([]byte, error) { return this.MarshalJSON() } func (this *IntOrString) MarshalJSON() ([]byte, error) { if this.IntVal != nil { return json.Marshal(this.IntVal.GetValue()) } return json.Marshal(this.StrVal.GetValue()) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 2.2K bytes - Viewed (0) -
src/crypto/x509/sec1.go
} privateKey := make([]byte, (key.Curve.Params().N.BitLen()+7)/8) return asn1.Marshal(ecPrivateKey{ Version: 1, PrivateKey: key.D.FillBytes(privateKey), NamedCurveOID: oid, PublicKey: asn1.BitString{Bytes: elliptic.Marshal(key.Curve, key.X, key.Y)}, }) } // marshalECDHPrivateKey marshals an EC private key into ASN.1, DER format // suitable for NIST curves.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 4.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
} // MarshalJSON implements the json.Marshaler interface. func (t MicroTime) MarshalJSON() ([]byte, error) { if t.IsZero() { // Encode unset/nil objects as JSON's "null". return []byte("null"), nil } return json.Marshal(t.UTC().Format(RFC3339Micro)) } func (t MicroTime) MarshalCBOR() ([]byte, error) { if t.IsZero() { return cbor.Marshal(nil) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 5.2K bytes - Viewed (0) -
internal/bucket/replication/datatypes_gen.go
func (z StatusType) EncodeMsg(en *msgp.Writer) (err error) { err = en.WriteString(string(z)) 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
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Mar 08 19:08:18 UTC 2024 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
buf = t.UTC().AppendFormat(buf, time.RFC3339) buf = append(buf, '"') return buf, nil } func (t Time) MarshalCBOR() ([]byte, error) { if t.IsZero() { return cbor.Marshal(nil) } return cbor.Marshal(t.UTC().Format(time.RFC3339)) } // ToUnstructured implements the value.UnstructuredConverter interface. func (t Time) ToUnstructured() interface{} { if t.IsZero() { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 5.2K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/checkpoint/checkpoint.go
return &Data{ Data: checkpointData{ PodDeviceEntries: devEntries, RegisteredDevices: devices, }, } } // MarshalCheckpoint returns marshalled data func (cp *Data) MarshalCheckpoint() ([]byte, error) { cp.Checksum = checksum.New(cp.Data) return json.Marshal(*cp) } // UnmarshalCheckpoint returns unmarshalled data func (cp *Data) UnmarshalCheckpoint(blob []byte) error { return json.Unmarshal(blob, cp) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 12:01:56 UTC 2024 - 3.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go
t.Errorf("unexpected error unmarshaling patch annotation: %v", err) } if p["configuration"] != tc.config { t.Errorf("unmarshaled configuration doesn't match, want: %s, got: %v", tc.config, p["configuration"]) } if p["webhook"] != tc.webhook { t.Errorf("unmarshaled webhook doesn't match, want: %s, got: %v", tc.webhook, p["webhook"]) } var expectedPatch interface{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 4.3K bytes - Viewed (0) -
src/cmd/dist/testjson.go
var buf bytes.Buffer var marshal1 func(v jsonValue) error marshal1 = func(v jsonValue) error { if t, ok := v.atom.(json.Delim); ok { buf.WriteRune(rune(t)) for i, v2 := range v.seq { if t == '{' && i%2 == 1 { buf.WriteByte(':') } else if i > 0 { buf.WriteByte(',') } if err := marshal1(v2); err != nil { return err } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 20:46:32 UTC 2024 - 4.6K bytes - Viewed (0)