- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newWholeBitrotReader (0.1 sec)
-
cmd/bitrot-whole.go
return 0, err } } if len(b.buf) < len(buf) { return 0, errLessData } n = copy(buf, b.buf) b.buf = b.buf[n:] return n, nil } // Returns whole-file bitrot reader. func newWholeBitrotReader(disk StorageAPI, volume, filePath string, algo BitrotAlgorithm, tillOffset int64, sum []byte) *wholeBitrotReader { return &wholeBitrotReader{ disk: disk, volume: volume, filePath: filePath,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jan 31 02:11:45 UTC 2024 - 2.7K bytes - Viewed (0) -
cmd/bitrot.go
if algo == HighwayHash256S { return newStreamingBitrotReader(disk, data, bucket, filePath, tillOffset, algo, shardSize) } return newWholeBitrotReader(disk, bucket, filePath, algo, tillOffset, sum) } // Close all the readers. func closeBitrotReaders(rs []io.ReaderAt) { for _, r := range rs { if r != nil { if br, ok := r.(io.Closer); ok {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 7.6K bytes - Viewed (0)