Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 170 for marshalers (0.19 sec)

  1. pkg/kubelet/volumemanager/reconciler/reconstruct_common.go

    	utilstrings "k8s.io/utils/strings"
    )
    
    // these interfaces are necessary to keep the structures private
    // and at the same time log them correctly in structured logs.
    var _ logr.Marshaler = podVolume{}
    var _ logr.Marshaler = reconstructedVolume{}
    var _ logr.Marshaler = globalVolumeInfo{}
    
    type podVolume struct {
    	podName        volumetypes.UniquePodName
    	volumeSpecName string
    	volumePath     string
    	pluginName     string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. cmd/bucket-replication-metrics_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.Max)
    	if err != nil {
    		err = msgp.WrapError(err, "Max")
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z ActiveWorkerStat) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	// map header, size 3
    	// string "Curr"
    	o = append(o, 0x83, 0xa4, 0x43, 0x75, 0x72, 0x72)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  3. src/crypto/x509/pkcs8_test.go

    		if err != nil {
    			t.Errorf("%s: failed to marshal into PKCS#8: %s", test.name, err)
    			continue
    		}
    		if !bytes.Equal(derBytes, reserialised) {
    			t.Errorf("%s: marshaled PKCS#8 didn't match original: got %x, want %x", test.name, reserialised, derBytes)
    			continue
    		}
    
    		if ecKey, isEC := privKey.(*ecdsa.PrivateKey); isEC {
    			ecdhKey, err := ecKey.ECDH()
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 19 16:45:10 UTC 2022
    - 9K bytes
    - Viewed (0)
  4. pkg/model/proxy.go

    	if err != nil {
    		return err
    	}
    	*s = StringBool(b)
    	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) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 17:18:17 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  5. test/fixedbugs/issue13171.go

    package main
    
    // Make sure the compiler knows that DUFFCOPY clobbers X0
    
    import "fmt"
    
    //go:noinline
    func f(x float64) float64 {
    	// y is allocated to X0
    	y := x + 5
    	// marshals z before y.  Marshaling z
    	// calls DUFFCOPY.
    	return g(z, y)
    }
    
    //go:noinline
    func g(b [64]byte, y float64) float64 {
    	return y
    }
    
    var z [64]byte
    
    func main() {
    	got := f(5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 12 00:13:35 UTC 2016
    - 588 bytes
    - Viewed (0)
  6. src/hash/crc32/crc32_test.go

    	ieee.Write([]byte("hello"))
    }
    
    type test struct {
    	ieee, castagnoli    uint32
    	in                  string
    	halfStateIEEE       string // IEEE marshaled hash state after first half of in written, used by TestGoldenMarshal
    	halfStateCastagnoli string // Castagnoli marshaled hash state after first half of in written, used by TestGoldenMarshal
    }
    
    var golden = []test{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. cmd/bucket-replication-utils_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteTime(z.LastUpdate)
    	if err != nil {
    		err = msgp.WrapError(err, "LastUpdate")
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z *BucketReplicationResyncStatus) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	// map header, size 4
    	// string "v"
    	o = append(o, 0x84, 0xa1, 0x76)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 61.1K bytes
    - Viewed (0)
  8. src/encoding/asn1/marshal.go

    //
    //	ia5:         causes strings to be marshaled as ASN.1, IA5String values
    //	omitempty:   causes empty slices to be skipped
    //	printable:   causes strings to be marshaled as ASN.1, PrintableString values
    //	utf8:        causes strings to be marshaled as ASN.1, UTF8String values
    //	utc:         causes time.Time to be marshaled as ASN.1, UTCTime values
    //	generalized: causes time.Time to be marshaled as ASN.1, GeneralizedTime values
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2_gen.go

    func (z ChecksumAlgo) 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 ChecksumAlgo) 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: Wed May 29 19:14:09 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  10. internal/grid/grid_types_msgp_test.go

    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.String)
    	if err != nil {
    		err = msgp.WrapError(err, "String")
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z testRequest) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	// map header, size 2
    	// string "Num"
    	o = append(o, 0x82, 0xa3, 0x4e, 0x75, 0x6d)
    	o = msgp.AppendInt(o, z.Num)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 8.1K bytes
    - Viewed (0)
Back to top