![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The file interface provides access to a single file.
The IFile object can be created by the IFileInterface object.
Get the position of the file pointer. Read() / Write() operations start at the file pointer position, the default position is zero.
Integer GetPosition()
Set the position of the file pointer. Read() / Write() operations start at the file pointer position, the default position is zero.
SetPosition(Integer position)
position | The position of the file pointer in bytes. |
Get the size of the file.
Integer GetSize()
Read from the file at the current file pointer position. The size of the data object's data is the number of bytes to read, if the data object is empty the data is resized to GetSize().
Integer, Murl.Data Read(Murl.Data data)
data | The data object to read the file into. |
Write to the file at the current file pointer position.
Integer Write(Murl.ConstData data)
data | The data object to write into the file. |