Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 406 for marshaled (0.27 sec)

  1. 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)
  2. src/html/template/js.go

    	// "<!--", "-->", "<![CDATA[", "]]>", or "</script"
    	// in case custom marshalers produce output containing those.
    	// Note: Do not use \x escaping to save bytes because it is not JSON compatible and this escaper
    	// supports ld+json content-type.
    	if len(b) == 0 {
    		// In, `x=y/{{.}}*z` a json.Marshaler that produces "" should
    		// not cause the output `x=y/*z`.
    		return " null "
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/state/checkpoint.go

    	}
    }
    
    // MarshalCheckpoint returns marshalled checkpoint in v1 format
    func (cp *CPUManagerCheckpointV1) MarshalCheckpoint() ([]byte, error) {
    	// make sure checksum wasn't set before so it doesn't affect output checksum
    	cp.Checksum = 0
    	cp.Checksum = checksum.New(cp)
    	return json.Marshal(*cp)
    }
    
    // MarshalCheckpoint returns marshalled checkpoint in v2 format
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. 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)
  5. staging/src/k8s.io/apimachinery/pkg/runtime/converter.go

    		// marshaling data appropriately.
    		if len(sv.Interface().(string)) > 0 {
    			marshalled, err := json.Marshal(sv.Interface())
    			if err != nil {
    				return fmt.Errorf("error encoding %s to json: %v", st, err)
    			}
    			// TODO: Is this Unmarshal needed?
    			var data []byte
    			err = json.Unmarshal(marshalled, &data)
    			if err != nil {
    				return fmt.Errorf("error decoding from json: %v", err)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 16:02:13 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_proto.go

    	return nil
    }
    
    // Marshal implements the protobuf marshalling interface.
    func (m *MicroTime) Marshal() (data []byte, err error) {
    	if m == nil || m.Time.IsZero() {
    		return nil, nil
    	}
    	return m.ProtoMicroTime().Marshal()
    }
    
    // MarshalTo implements the protobuf marshalling interface.
    func (m *MicroTime) MarshalTo(data []byte) (int, error) {
    	if m == nil || m.Time.IsZero() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 02 08:21:04 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  10. internal/grid/msg_gen.go

    func (z Flags) EncodeMsg(en *msgp.Writer) (err error) {
    	err = en.WriteUint8(uint8(z))
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z Flags) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	o = msgp.AppendUint8(o, uint8(z))
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 18.8K bytes
    - Viewed (0)
Back to top