LuaSTG-x Core API
|
Public Member Functions | |
function | fill (local dst, local length, local buffer) |
function | isResizable () |
function | isWritable () |
function | lock () |
function | resize (local size) |
function | seek (local Origin, local Offset) |
function | size () |
function | tell () |
function | tryLock () |
function | unlock () |
Read from this and write to dst.
dst | lstg.Stream |
length | number |
buffer | lstg.Buffer |
function isResizable | ( | ) |
If the stream is resizable.
function isWritable | ( | ) |
If the stream is writable.
function lock | ( | ) |
Lock the stream. It is necessary when used in multi-thread.
note May cause block.
Set the position to read or write.
Origin | number |
Offset | number |
function size | ( | ) |
Size of the stream.
function tell | ( | ) |
Get the position to read or write.
function tryLock | ( | ) |
Try to lock the stream, will return false when already locked.
This function will not block.
function unlock | ( | ) |
Unlock the stream.