1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: make os module handle large files (#9439)

This commit is contained in:
Bastian Buck
2021-03-26 07:51:55 +01:00
committed by GitHub
parent 91ea76797a
commit 69dff4b384
5 changed files with 158 additions and 46 deletions

View File

@@ -70,5 +70,5 @@ pub fn read_any(r Reader) ?[]byte {
// RandomReader represents a stream of data that can be read from at a random location
interface RandomReader {
read_from(pos int, mut buf []byte) ?int
read_from(pos u64, mut buf []byte) ?int
}