This commit is contained in:
Caleb J. Gardner
2026-03-08 06:11:15 -05:00
parent f5e9907829
commit 3060c4056d
+2
View File
@@ -55,6 +55,8 @@ func (d *Reader) Read(buf []byte) (int, error) {
}
toRead = min(len(d.curBlock)-int(d.curOffset), len(buf)-totRed)
copy(buf[totRed:], d.curBlock[d.curOffset:d.curOffset+uint32(toRead)])
totRed += toRead
d.curOffset += uint32(toRead)
}
return totRed, nil
}