mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 02:33:28 +00:00
os, syscall: implement ReadAt for unix
Windows will take more work, so test is skipped there.
This commit is contained in:
@@ -46,6 +46,9 @@ type FileHandle interface {
|
||||
// Read reads up to len(b) bytes from the file.
|
||||
Read(b []byte) (n int, err error)
|
||||
|
||||
// ReadAt reads up to len(b) bytes from the file starting at the given absolute offset
|
||||
ReadAt(b []byte, offset int64) (n int, err error)
|
||||
|
||||
// Write writes up to len(b) bytes to the file.
|
||||
Write(b []byte) (n int, err error)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user