- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 473 for marshaled (0.33 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 23 13:38:23 UTC 2022 - 17.8K 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) -
src/hash/example_test.go
input2 = "unaware of what he will find." ) first := sha256.New() first.Write([]byte(input1)) marshaler, ok := first.(encoding.BinaryMarshaler) if !ok { log.Fatal("first does not implement encoding.BinaryMarshaler") } state, err := marshaler.MarshalBinary() if err != nil { log.Fatal("unable to marshal hash:", err) } second := sha256.New() unmarshaler, ok := second.(encoding.BinaryUnmarshaler)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 04 03:47:34 UTC 2017 - 1.2K bytes - Viewed (0) -
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) -
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) -
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) -
test/typeparam/issue48185a.dir/p.go
// license that can be found in the LICENSE file. package p type MarshalOptions struct { Marshalers *Marshalers } type Encoder struct {} type Marshalers = marshalers[MarshalOptions, Encoder] type marshalers[Options, Coder any] struct{} func MarshalFuncV1[T any](fn func(T) ([]byte, error)) *Marshalers { return &Marshalers{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 07 17:38:14 UTC 2021 - 444 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/testing/cacheable_object.go
) // nonCacheableTestObject implements json.Marshaler and proto.Marshaler interfaces // for mocking purpose. // +k8s:deepcopy-gen=false type noncacheableTestObject struct { gvk schema.GroupVersionKind } // MarshalJSON implements json.Marshaler interface. func (*noncacheableTestObject) MarshalJSON() ([]byte, error) { return []byte("\"json-result\""), nil } // Marshal implements proto.Marshaler interface.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 30 06:58:54 UTC 2019 - 6.1K bytes - Viewed (0) -
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) -
pkg/kubelet/cm/memorymanager/state/checkpoint.go
MachineState: NUMANodeMap{}, } } // MarshalCheckpoint returns marshalled checkpoint func (mp *MemoryManagerCheckpoint) MarshalCheckpoint() ([]byte, error) { // make sure checksum wasn't set before so it doesn't affect output checksum mp.Checksum = 0 mp.Checksum = checksum.New(mp) return json.Marshal(*mp) } // UnmarshalCheckpoint tries to unmarshal passed bytes to checkpoint
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 17 12:58:53 UTC 2021 - 2.1K bytes - Viewed (0)