Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 166 for msgp (0.02 sec)

  1. cmd/data-usage-cache_gen.go

    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0001 > 0 {
    		zb0001--
    		field, bts, err = msgp.ReadMapKeyZC(bts)
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "current":
    			z.current, bts, err = msgp.ReadUint64Bytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "current")
    				return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 75K bytes
    - Viewed (0)
  2. cmd/bucket-metadata_gen.go

    	return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  3. cmd/data-usage-cache_gen_test.go

    	v := allTierStats{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    
    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodeallTierStats Msgsize() is inaccurate")
    	}
    
    	vn := allTierStats{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    		t.Error(err)
    	}
    
    	buf.Reset()
    	msgp.Encode(&buf, &v)
    	err = msgp.NewReader(&buf).Skip()
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 22:23:33 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2_gen.go

    import (
    	"github.com/tinylib/msgp/msgp"
    )
    
    // DecodeMsg implements msgp.Decodable
    func (z *ChecksumAlgo) DecodeMsg(dc *msgp.Reader) (err error) {
    	{
    		var zb0001 uint8
    		zb0001, err = dc.ReadUint8()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		(*z) = ChecksumAlgo(zb0001)
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  5. cmd/storage-datatypes_gen.go

    		switch msgp.UnsafeString(field) {
    		case "id":
    			z.DiskID, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "DiskID")
    				return
    			}
    		case "v":
    			z.Volume, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "Volume")
    				return
    			}
    		case "fp":
    			z.FilePath, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 150.2K bytes
    - Viewed (0)
  6. docs/debugging/xl-meta/main.go

    	}
    	bts, err = msgp.ReadExactBytes(bts, (z.VersionID)[:])
    	if err != nil {
    		err = msgp.WrapError(err, "VersionID")
    		return
    	}
    	z.ModTime, bts, err = msgp.ReadInt64Bytes(bts)
    	if err != nil {
    		err = msgp.WrapError(err, "ModTime")
    		return
    	}
    	bts, err = msgp.ReadExactBytes(bts, (z.Signature)[:])
    	if err != nil {
    		err = msgp.WrapError(err, "Signature")
    		return
    	}
    	{
    		var zb0002 uint8
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-v1_gen.go

    	s = 1 + 10 + msgp.StringPrefixSize + len(z.Algorithm) + 11 + msgp.IntSize + 13 + msgp.IntSize + 10 + msgp.Int64Size + 6 + msgp.IntSize + 13 + msgp.ArrayHeaderSize + (len(z.Distribution) * (msgp.IntSize)) + 10 + msgp.ArrayHeaderSize
    	for za0002 := range z.Checksums {
    		s += z.Checksums[za0002].Msgsize()
    	}
    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    func (z *ObjectPartInfo) DecodeMsg(dc *msgp.Reader) (err error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  8. cmd/object-api-interface_gen.go

    func (z *WalkOptions) Msgsize() (s int) {
    	s = 1 + 7 + msgp.StringPrefixSize + len(z.Marker) + 11 + msgp.BoolSize + 9 + msgp.StringPrefixSize + len(z.AskDisks) + 13 + msgp.Uint8Size + 6 + msgp.IntSize
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z WalkVersionsSortOrder) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	o = msgp.AppendUint8(o, uint8(z))
    	return
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 21:57:20 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. cmd/data-usage-cache.go

    		if err != nil {
    			err = msgp.WrapError(err, zb0004)
    			return
    		}
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z dataUsageHashMap) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	o = msgp.AppendArrayHeader(o, uint32(len(z)))
    	for zb0004 := range z {
    		o = msgp.AppendString(o, zb0004)
    	}
    	return
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  10. cmd/storage-rest-client.go

    // where we keep old *Readers
    var readMsgpReaderPool = sync.Pool{New: func() interface{} { return &msgp.Reader{} }}
    
    // mspNewReader returns a *Reader that reads from the provided reader.
    // The reader will be buffered.
    // Return with readMsgpReaderPoolPut when done.
    func msgpNewReader(r io.Reader) *msgp.Reader {
    	p := readMsgpReaderPool.Get().(*msgp.Reader)
    	if p.R == nil {
    		p.R = xbufio.NewReaderSize(r, 32<<10)
    	} else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
Back to top