- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 170 for marshalers (0.17 sec)
-
staging/src/k8s.io/apimachinery/pkg/conversion/queryparams/convert.go
// Return unless we implement a custom query marshaler if !value.CanInterface() { return reflect.Value{}, false } marshaler, ok := value.Interface().(Marshaler) if !ok { if !isPointerKind(value.Kind()) && value.CanAddr() { marshaler, ok = value.Addr().Interface().(Marshaler) if !ok { return reflect.Value{}, false } } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 25 16:23:43 UTC 2022 - 4.9K bytes - Viewed (0) -
src/encoding/json/encode.go
_ "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/runtime/testing/cacheable_object.go
"k8s.io/apimachinery/pkg/runtime/schema" ) // 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 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 30 06:58:54 UTC 2019 - 6.1K 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()
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/crypto/hmac/hmac.go
type hmac struct { opad, ipad []byte outer, inner hash.Hash // If marshaled is true, then opad and ipad do not contain a padded // copy of the key, but rather the marshaled state of outer/inner after // opad/ipad has been fed into it. marshaled bool } func (h *hmac) Sum(in []byte) []byte { origLen := len(in) in = h.inner.Sum(in) if h.marshaled { if err := h.outer.(marshalable).UnmarshalBinary(h.opad); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 4.7K bytes - Viewed (0) -
cmd/object-api-interface_gen.go
package cmd // Code generated by github.com/tinylib/msgp DO NOT EDIT. import ( "github.com/tinylib/msgp/msgp" ) // MarshalMsg implements msgp.Marshaler func (z BucketOptions) MarshalMsg(b []byte) (o []byte, err error) { o = msgp.Require(b, z.Msgsize()) // map header, size 2 // string "Deleted" o = append(o, 0x82, 0xa7, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64) o = msgp.AppendBool(o, z.Deleted) // string "Cached"
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Mar 08 19:08:18 UTC 2024 - 8.1K 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) -
cluster/gce/windows/testonly/user-profile.psm1
if (-not ([System.Management.Automation.PSTypeName]$MethodName).Type) { Register-NativeMethod "userenv.dll" "int CreateProfile([MarshalAs(UnmanagedType.LPWStr)] string pszUserSid,` [MarshalAs(UnmanagedType.LPWStr)] string pszUserName,` [Out][MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszProfilePath, uint cchProfilePath)"; Add-NativeMethods -typeName $MethodName; }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 26 00:44:57 UTC 2019 - 9.4K bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/cryptobyte/builder.go
// they write into a given buffer and produce an error if it's exhausted. // // The zero value is a usable Builder that allocates space as needed. // // Simple values are marshaled and appended to a Builder using methods on the // Builder. Length-prefixed values are marshaled by providing a // BuilderContinuation, which is a function that writes the inner contents of // the value to a given Builder. See the documentation for BuilderContinuation
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 10 16:32:44 UTC 2023 - 9.9K bytes - Viewed (0) -
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)