add io_stream:tell & fix io_stream:seek

This commit is contained in:
MihailRis 2026-06-11 00:27:15 +03:00
parent ce0f90d21e
commit 0d2a0b012d
5 changed files with 77 additions and 42 deletions

View file

@ -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