Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for uint64_t (0.17 sec)

  1. src/archive/zip/reader.go

    	d := &directoryEnd{
    		diskNbr:            uint32(b.uint16()),
    		dirDiskNbr:         uint32(b.uint16()),
    		dirRecordsThisDisk: uint64(b.uint16()),
    		directoryRecords:   uint64(b.uint16()),
    		directorySize:      uint64(b.uint32()),
    		directoryOffset:    uint64(b.uint32()),
    		commentLen:         b.uint16(),
    	}
    	l := int(d.commentLen)
    	if l > len(b) {
    		return nil, 0, errors.New("zip: invalid comment length")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  2. internal/bucket/bandwidth/reader.go

    	}
    
    	err = r.throttle.WaitN(r.ctx, tokens)
    	if err != nil {
    		return
    	}
    
    	n, err = r.r.Read(buf[:need])
    	if err != nil {
    		r.lastErr = err
    		return
    	}
    	r.m.updateMeasurement(r.opts.BucketOptions, uint64(tokens))
    	return
    }
    
    // NewMonitoredReader returns reference to a monitored reader that throttles reads to configured bandwidth for the
    // bucket.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 06 03:21:59 GMT 2023
    - 3.1K bytes
    - Viewed (0)
Back to top