Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. internal/grid/types.go

    // remainder of bytes.
    func (b *Bytes) UnmarshalMsg(bytes []byte) ([]byte, error) {
    	if b == nil {
    		return bytes, errors.New("Bytes: UnmarshalMsg on nil pointer")
    	}
    	if bytes, err := msgp.ReadNilBytes(bytes); err == nil {
    		if *b != nil {
    			PutByteBuffer(*b)
    		}
    		*b = nil
    		return bytes, nil
    	}
    	val, bytes, err := msgp.ReadBytesZC(bytes)
    	if err != nil {
    		return bytes, err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. cmd/batch-handlers_gen.go

    			z.Started, bts, err = msgp.ReadTimeBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "Started")
    				return
    			}
    		case "Replicate":
    			if msgp.IsNil(bts) {
    				bts, err = msgp.ReadNilBytes(bts)
    				if err != nil {
    					return
    				}
    				z.Replicate = nil
    			} else {
    				if z.Replicate == nil {
    					z.Replicate = new(BatchJobReplicateV1)
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. internal/dsync/lock-args_gen.go

    		case "Source":
    			z.Source, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "Source")
    				return
    			}
    		case "Quorum":
    			if msgp.IsNil(bts) {
    				bts, err = msgp.ReadNilBytes(bts)
    				if err != nil {
    					return
    				}
    				z.Quorum = nil
    			} else {
    				if z.Quorum == nil {
    					z.Quorum = new(int)
    				}
    				*z.Quorum, bts, err = msgp.ReadIntBytes(bts)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2_gen.go

    		field, bts, err = msgp.ReadMapKeyZC(bts)
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "V2Obj":
    			if msgp.IsNil(bts) {
    				bts, err = msgp.ReadNilBytes(bts)
    				if err != nil {
    					return
    				}
    				z.ObjectV2 = nil
    			} else {
    				if z.ObjectV2 == nil {
    					z.ObjectV2 = new(struct {
    						DataDir [16]byte `msg:"DDir"`
    					})
    				}
    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/batch-expire_gen.go

    			bts, err = z.OlderThan.UnmarshalMsg(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "OlderThan")
    				return
    			}
    		case "CreatedBefore":
    			if msgp.IsNil(bts) {
    				bts, err = msgp.ReadNilBytes(bts)
    				if err != nil {
    					return
    				}
    				z.CreatedBefore = nil
    			} else {
    				if z.CreatedBefore == nil {
    					z.CreatedBefore = new(time.Time)
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  6. internal/grid/msg_gen.go

    		case "nf":
    			z.NotFound, bts, err = msgp.ReadBoolBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "NotFound")
    				return
    			}
    		case "e":
    			if msgp.IsNil(bts) {
    				bts, err = msgp.ReadNilBytes(bts)
    				if err != nil {
    					return
    				}
    				z.Err = nil
    			} else {
    				if z.Err == nil {
    					z.Err = new(string)
    				}
    				*z.Err, bts, err = msgp.ReadStringBytes(bts)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  7. cmd/data-usage-cache_gen.go

    				if err != nil {
    					err = msgp.WrapError(err, "ObjVersions", za0002)
    					return
    				}
    			}
    		case "ats":
    			if msgp.IsNil(bts) {
    				bts, err = msgp.ReadNilBytes(bts)
    				if err != nil {
    					return
    				}
    				z.AllTierStats = nil
    			} else {
    				if z.AllTierStats == nil {
    					z.AllTierStats = new(allTierStats)
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 75K bytes
    - Viewed (0)
  8. cmd/object-api-datatypes_gen.go

    			z.Size, bts, err = msgp.ReadInt64Bytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "Size")
    				return
    			}
    		case "ActualSize":
    			if msgp.IsNil(bts) {
    				bts, err = msgp.ReadNilBytes(bts)
    				if err != nil {
    					return
    				}
    				z.ActualSize = nil
    			} else {
    				if z.ActualSize == nil {
    					z.ActualSize = new(int64)
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  9. cmd/storage-datatypes_gen.go

    				z.Infos = (z.Infos)[:zb0002]
    			} else {
    				z.Infos = make([]*ObjectPartInfo, zb0002)
    			}
    			for za0001 := range z.Infos {
    				if msgp.IsNil(bts) {
    					bts, err = msgp.ReadNilBytes(bts)
    					if err != nil {
    						return
    					}
    					z.Infos[za0001] = nil
    				} else {
    					if z.Infos[za0001] == nil {
    						z.Infos[za0001] = new(ObjectPartInfo)
    					}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 150.2K bytes
    - Viewed (0)
Back to top