- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 205 for marshaled (0.21 sec)
-
src/encoding/asn1/asn1_test.go
if err != nil { t.Fatal(err) } if !bytes.Equal(NullBytes, marshaled) { t.Errorf("Expected Marshal of NullRawValue to yield %x, got %x", NullBytes, marshaled) } unmarshaled := RawValue{} if _, err := Unmarshal(NullBytes, &unmarshaled); err != nil { t.Fatal(err) } unmarshaled.FullBytes = NullRawValue.FullBytes if len(unmarshaled.Bytes) == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 29 18:24:36 UTC 2023 - 43.6K bytes - Viewed (0) -
pkg/model/proxy.go
return nil } // ProxyConfig can only be marshaled using (gogo) jsonpb. However, the rest of node meta is not a proto // To allow marshaling, we need to define a custom type that calls out to the gogo marshaller type NodeMetaProxyConfig meshconfig.ProxyConfig func (s *NodeMetaProxyConfig) MarshalJSON() ([]byte, error) { pc := (*meshconfig.ProxyConfig)(s) return protomarshal.Marshal(pc) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 17:18:17 UTC 2024 - 18.7K bytes - Viewed (0) -
src/regexp/all_test.go
} } } func TestUnmarshalText(t *testing.T) { unmarshaled := new(Regexp) for i := range goodRe { re := compileTest(t, goodRe[i], "") marshaled, err := re.MarshalText() if err != nil { t.Errorf("regexp %#q failed to marshal: %s", re, err) continue } if err := unmarshaled.UnmarshalText(marshaled); err != nil { t.Errorf("regexp %#q failed to unmarshal: %s", re, err) continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:36:03 UTC 2024 - 25.8K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/profile.go
p.encodeMu.Lock() p.preEncode() b := marshal(p) p.encodeMu.Unlock() return b } // Write writes the profile as a gzip-compressed marshaled protobuf. func (p *Profile) Write(w io.Writer) error { zw := gzip.NewWriter(w) defer zw.Close() _, err := zw.Write(serialize(p)) return err } // WriteUncompressed writes the profile as a marshaled protobuf.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 22.3K bytes - Viewed (0) -
src/crypto/md5/md5_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 23 16:54:46 UTC 2021 - 17.4K bytes - Viewed (0) -
src/internal/profile/profile.go
} if err := p.postDecode(); err != nil { return nil, err } return p, nil } // Write writes the profile as a gzip-compressed marshaled protobuf. func (p *Profile) Write(w io.Writer) error { p.preEncode() b := marshal(p) zw := gzip.NewWriter(w) defer zw.Close() _, err := zw.Write(b) return err } // CheckValid tests whether the profile is valid. Checks include, but are
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 17:57:40 UTC 2024 - 13.4K bytes - Viewed (0) -
src/crypto/sha1/sha1_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 03 21:27:16 UTC 2023 - 18.3K bytes - Viewed (0) -
src/encoding/json/encode.go
"unicode/utf8" _ "unsafe" // for linkname ) // Marshal returns the JSON encoding of v. // // Marshal traverses the value v recursively. // If an encountered value implements [Marshaler] // and is not a nil pointer, Marshal calls [Marshaler.MarshalJSON] // to produce JSON. If no [Marshaler.MarshalJSON] method is present but the // value implements [encoding.TextMarshaler] instead, Marshal calls
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 36.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go
} } // roundTrip applies a single round-trip test to the given runtime object // using the given codec. The round-trip test ensures that an object can be // deep-copied, converted, marshaled and back without loss of data. // // For internal types this means // // internal -> external -> json/protobuf -> external -> internal. // // For external types this means //
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 16.8K bytes - Viewed (0) -
cmd/kubeadm/app/util/staticpod/utils_test.go
func TestReadStaticPodFromDisk(t *testing.T) { tests := []struct { description string podYaml string expectErr bool writeManifest bool }{ { description: "valid pod is marshaled", podYaml: validPod, writeManifest: true, expectErr: false, }, { description: "invalid pod fails to unmarshal", podYaml: invalidPod, writeManifest: true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 12 15:44:44 UTC 2023 - 22.6K bytes - Viewed (0)