![]() |
Murl Engine API
Version 2018.3
|
The file interface provides access to a single file. More...
#include <murl_i_file.h>
The file interface provides access to a single file.
The IFile object can be created by the IFileInterface object.
Public Member Functions | |
virtual UInt64 | GetPosition ()=0 |
Get the position of the file pointer. More... | |
virtual void | SetPosition (UInt64 position)=0 |
Set the position of the file pointer. More... | |
virtual UInt64 | GetSize ()=0 |
Get the size of the file. More... | |
virtual UInt64 | Read (void *data, UInt64 byteSize)=0 |
Read from the file at the current file pointer position. More... | |
virtual UInt64 | Write (const void *data, UInt64 byteSize)=0 |
Write to the file at the current file pointer position. More... | |
virtual UInt64 | Read (Data &data)=0 |
Read from the file at the current file pointer position. More... | |
virtual UInt64 | Write (const ConstData &data)=0 |
Write to the file at the current file pointer position. More... | |
|
pure virtual |
Get the position of the file pointer.
Read() / Write() operations start at the file pointer position, the default position is zero.
Implemented in Murl::Util::File.
|
pure virtual |
Set the position of the file pointer.
Read() / Write() operations start at the file pointer position, the default position is zero.
position | The position of the file pointer in bytes. |
Implemented in Murl::Util::File.
|
pure virtual |
Read from the file at the current file pointer position.
data | The memory pointer to read the file into. |
byteSize | The number of bytes to read. |
Implemented in Murl::Util::File.
Write to the file at the current file pointer position.
data | The memory pointer to write into the file. |
byteSize | The number of bytes to write. |
Implemented in Murl::Util::File.
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().
data | The data object to read the file into. |
Implemented in Murl::Util::File.
Write to the file at the current file pointer position.
data | The data object to write into the file. |
Implemented in Murl::Util::File.