Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/storage-datatypes_gen.go

    func (z BaseOptions) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	// map header, size 0
    	_ = z
    	o = append(o, 0x80)
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    func (z *BaseOptions) 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
    - 150.2K bytes
    - Viewed (0)
  2. cmd/bucket-replication.go

    	case resyncMetaVersion:
    	default:
    		return brs, fmt.Errorf("resyncMeta: unknown version: %d", binary.LittleEndian.Uint16(data[2:4]))
    	}
    	// OK, parse data.
    	if _, err = brs.UnmarshalMsg(data[4:]); err != nil {
    		return brs, err
    	}
    
    	switch brs.Version {
    	case resyncMetaVersionV1:
    	default:
    		return brs, fmt.Errorf("unexpected resync meta version: %d", brs.Version)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  3. cmd/site-replication.go

    	case siteResyncMetaVersion:
    	default:
    		return rs, fmt.Errorf("resyncMeta: unknown version: %d", binary.LittleEndian.Uint16(data[2:4]))
    	}
    	// OK, parse data.
    	if _, err = rs.UnmarshalMsg(data[4:]); err != nil {
    		return rs, err
    	}
    
    	switch rs.Version {
    	case siteResyncMetaVersionV1:
    	default:
    		return rs, fmt.Errorf("unexpected resync meta version: %d", rs.Version)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
Back to top