mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 02:33:28 +00:00
os: implement os.(*File).WriteAt (#3697)
os: implement os.(*File).WriteAt Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
This commit is contained in:
@@ -58,6 +58,9 @@ type FileHandle interface {
|
||||
// Write writes up to len(b) bytes to the file.
|
||||
Write(b []byte) (n int, err error)
|
||||
|
||||
// WriteAt writes b to the file at the given absolute offset
|
||||
WriteAt(b []byte, offset int64) (n int, err error)
|
||||
|
||||
// Close closes the file, making it unusable for further writes.
|
||||
Close() (err error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user