Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ReadUint32Bytes (0.25 sec)

  1. internal/grid/msg_gen.go

    	}
    	z.MuxID, bts, err = msgp.ReadUint64Bytes(bts)
    	if err != nil {
    		err = msgp.WrapError(err, "MuxID")
    		return
    	}
    	z.Seq, bts, err = msgp.ReadUint32Bytes(bts)
    	if err != nil {
    		err = msgp.WrapError(err, "Seq")
    		return
    	}
    	z.DeadlineMS, bts, err = msgp.ReadUint32Bytes(bts)
    	if err != nil {
    		err = msgp.WrapError(err, "DeadlineMS")
    		return
    	}
    	{
    		var zb0002 uint8
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  2. cmd/xl-storage-meta-inline.go

    	}
    	// Skip header
    	_, metaBuf, err = msgp.ReadBytesZC(metaBuf)
    	if err != nil {
    		storageLogIf(GlobalContext, err)
    		return buf
    	}
    	// Skip CRC
    	if maj > 1 || min >= 2 {
    		_, metaBuf, err = msgp.ReadUint32Bytes(metaBuf)
    		storageLogIf(GlobalContext, err)
    	}
    	//   =  input - current pos
    	ends := len(buf) - len(metaBuf)
    	if ends > len(buf) {
    		return buf
    	}
    
    	return buf[:ends]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. docs/debugging/xl-meta/main.go

    				if err != nil {
    					return nil, err
    				}
    			case 1, 2:
    				v, b, err := msgp.ReadBytesZC(b)
    				if err != nil {
    					return nil, err
    				}
    				if _, nbuf, err := msgp.ReadUint32Bytes(b); err == nil {
    					// Read metadata CRC (added in v2, ignore if not found)
    					b = nbuf
    				}
    
    				_, err = msgp.CopyToJSON(buf, bytes.NewReader(v))
    				if err != nil {
    					return nil, err
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2.go

    			}
    
    			if int64(len(buf)) < want {
    				return nil, fmt.Errorf("buffer shorter than expected (buflen: %d, want: %d): %w", len(buf), want, errFileCorrupt)
    			}
    
    			tmp = buf[want:]
    			_, after, err := msgp.ReadUint32Bytes(tmp)
    			if err != nil {
    				return nil, fmt.Errorf("readXLMetaNoData(read_meta): unknown metadata version %w", err)
    			}
    			want += int64(len(tmp) - len(after))
    
    			return buf[:want], err
    
    		default:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  5. cmd/storage-datatypes_gen.go

    	if err != nil {
    		err = msgp.WrapError(err, "FreeInodes")
    		return
    	}
    	z.Major, bts, err = msgp.ReadUint32Bytes(bts)
    	if err != nil {
    		err = msgp.WrapError(err, "Major")
    		return
    	}
    	z.Minor, bts, err = msgp.ReadUint32Bytes(bts)
    	if err != nil {
    		err = msgp.WrapError(err, "Minor")
    		return
    	}
    	z.NRRequests, bts, err = msgp.ReadUint64Bytes(bts)
    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. cmd/xl-storage-format-v1_gen.go

    			}
    		case "Dir":
    			z.Dir, bts, err = msgp.ReadBoolBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "Dir")
    				return
    			}
    		case "Mode":
    			z.Mode, bts, err = msgp.ReadUint32Bytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "Mode")
    				return
    			}
    		default:
    			bts, err = msgp.Skip(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
    - 41.2K bytes
    - Viewed (0)
  7. cmd/object-api-datatypes_gen.go

    			z.EventType, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "EventType")
    				return
    			}
    		case "RetryCount":
    			z.RetryCount, bts, err = msgp.ReadUint32Bytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "RetryCount")
    				return
    			}
    		case "ResetID":
    			z.ResetID, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  8. cmd/data-usage-cache_gen.go

    		case "Name":
    			z.Name, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "Name")
    				return
    			}
    		case "NextCycle":
    			z.NextCycle, bts, err = msgp.ReadUint32Bytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "NextCycle")
    				return
    			}
    		case "LastUpdate":
    			z.LastUpdate, bts, err = msgp.ReadTimeBytes(bts)
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 75K bytes
    - Viewed (0)
Back to top