mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
add io_stream:seek
This commit is contained in:
parent
3c383a9277
commit
33f7815a21
5 changed files with 51 additions and 3 deletions
|
|
@ -369,6 +369,10 @@ function io_stream:write(arg, ...)
|
|||
end
|
||||
end
|
||||
|
||||
function io_stream:seek(mode, offset)
|
||||
self.ioLib.seek(self.descriptor, mode, offset)
|
||||
end
|
||||
|
||||
function io_stream:is_alive()
|
||||
return self.ioLib.is_alive(self.descriptor)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue