Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for UnmarshalMsg (0.14 sec)

  1. cmd/storage-datatypes_gen_test.go

    func TestMarshalUnmarshalBaseOptions(t *testing.T) {
    	v := BaseOptions{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Aug 12 08:38:15 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  2. cmd/data-usage-cache_gen.go

    		o = msgp.AppendInt(o, za0002.NumVersions)
    		// string "no"
    		o = append(o, 0xa2, 0x6e, 0x6f)
    		o = msgp.AppendInt(o, za0002.NumObjects)
    	}
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    func (z *allTierStats) UnmarshalMsg(bts []byte) (o []byte, err error) {
    	var field []byte
    	_ = field
    	var zb0001 uint32
    	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
    	if err != nil {
    		err = msgp.WrapError(err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 75K bytes
    - Viewed (0)
  3. cmd/bucket-stats_gen.go

    		case "ActiveWorkers":
    			bts, err = z.ActiveWorkers.UnmarshalMsg(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "ActiveWorkers")
    				return
    			}
    		case "QStats":
    			bts, err = z.QStats.UnmarshalMsg(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "QStats")
    				return
    			}
    		case "MRFStats":
    			bts, err = z.MRFStats.UnmarshalMsg(bts)
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  4. cmd/object-api-datatypes_gen.go

    func (z BackendType) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	o = msgp.AppendInt(o, int(z))
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    func (z *BackendType) UnmarshalMsg(bts []byte) (o []byte, err error) {
    	{
    		var zb0001 int
    		zb0001, bts, err = msgp.ReadIntBytes(bts)
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  5. cmd/bucket-replication-utils_gen.go

    	o = msgp.AppendInt(o, z.ID)
    	// string "lu"
    	o = append(o, 0xa2, 0x6c, 0x75)
    	o = msgp.AppendTime(o, z.LastUpdate)
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    func (z *BucketReplicationResyncStatus) UnmarshalMsg(bts []byte) (o []byte, err error) {
    	var field []byte
    	_ = field
    	var zb0001 uint32
    	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 61.1K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2_gen.go

    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
    func (z *ChecksumAlgo) UnmarshalMsg(bts []byte) (o []byte, err error) {
    	{
    		var zb0001 uint8
    		zb0001, bts, err = msgp.ReadUint8Bytes(bts)
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  7. cmd/batch-handlers.go

    	default:
    		return fmt.Errorf("%s: unknown version: %d", ri.JobType, binary.LittleEndian.Uint16(data[2:4]))
    	}
    
    	ri.mu.Lock()
    	defer ri.mu.Unlock()
    
    	// OK, parse data.
    	if _, err = ri.UnmarshalMsg(data[4:]); err != nil {
    		return err
    	}
    
    	switch ri.Version {
    	case batchReplVersionV1:
    	default:
    		return fmt.Errorf("unexpected batch %s meta version: %d", ri.JobType, ri.Version)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    		return nil
    	}
    	if len(b) == 0 {
    		internalLogIf(GlobalContext, fmt.Errorf("%s is empty", healingFile))
    		// 'healing.bin' might be truncated
    		return nil
    	}
    	h := newHealingTracker()
    	_, err = h.UnmarshalMsg(b)
    	internalLogIf(GlobalContext, err)
    	return h
    }
    
    // checkODirectDiskSupport asks the disk to write some data
    // with O_DIRECT support, return an error if any and return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2.go

    	for _, version := range x.versions {
    		if version.header.Type != ObjectType || version.header.VersionID == versionID || !version.header.UsesDataDir() {
    			continue
    		}
    		_, err := decoded.UnmarshalMsg(version.meta)
    		if err != nil || decoded.ObjectV2 == nil || decoded.ObjectV2.DataDir != dataDir {
    			continue
    		}
    		sameDataDirCount++
    	}
    	return sameDataDirCount
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
Back to top