The file interface provides access to a single file. More...
#include "murl_i_file.h"
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... | |
Detailed Description
The file interface provides access to a single file.
The IFile object can be created by the IFileInterface object.
Member Function Documentation
◆ GetPosition()
|
pure virtual |
Get the position of the file pointer.
Read() / Write() operations start at the file pointer position, the default position is zero.
- Returns
- The position of the file pointer in bytes.
Implemented in Murl::Util::File.
◆ SetPosition()
|
pure virtual |
Set the position of the file pointer.
Read() / Write() operations start at the file pointer position, the default position is zero.
- Parameters
-
position The position of the file pointer in bytes.
Implemented in Murl::Util::File.
◆ GetSize()
|
pure virtual |
◆ Read() [1/2]
Read from the file at the current file pointer position.
- Parameters
-
data The memory pointer to read the file into. byteSize The number of bytes to read.
- Returns
- The number of bytes read into the memory.
Implemented in Murl::Util::File.
◆ Write() [1/2]
Write to the file at the current file pointer position.
- Parameters
-
data The memory pointer to write into the file. byteSize The number of bytes to write.
- Returns
- The number of bytes written into the file.
Implemented in Murl::Util::File.
◆ Read() [2/2]
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().
- Parameters
-
data The data object to read the file into.
- Returns
- The number of bytes read into the data object.
Implemented in Murl::Util::File.
◆ Write() [2/2]
Write to the file at the current file pointer position.
- Parameters
-
data The data object to write into the file.
- Returns
- The number of bytes written into the file.
Implemented in Murl::Util::File.
The documentation for this interface was generated from the following file:
- murl_i_file.h