mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add io_stream:tell & fix io_stream:seek
This commit is contained in:
parent
ce0f90d21e
commit
0d2a0b012d
5 changed files with 77 additions and 42 deletions
|
|
@ -373,6 +373,10 @@ function io_stream:seek(mode, offset)
|
|||
self.ioLib.seek(self.descriptor, mode, offset)
|
||||
end
|
||||
|
||||
function io_stream:tell()
|
||||
return self.ioLib.tell(self.descriptor)
|
||||
end
|
||||
|
||||
function io_stream:is_alive()
|
||||
return self.ioLib.is_alive(self.descriptor)
|
||||
end
|
||||
|
|
@ -399,4 +403,4 @@ function io_stream:flush()
|
|||
if self.flushMode ~= FLUSH_MODE_ONLY_BUFFER then self.ioLib.flush(self.descriptor) end
|
||||
end
|
||||
|
||||
return io_stream
|
||||
return io_stream
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue