Encapsulates a file.
More...
#include <Imt.Base.OS.WinEC7/OSFile.h>
◆ OSFile()
imt::base::os::winec7::OSFile::OSFile |
( |
const std::wstring & |
fileName | ) |
|
|
explicit |
◆ ~OSFile()
virtual imt::base::os::winec7::OSFile::~OSFile |
( |
void |
| ) |
|
|
virtual |
◆ create()
bool imt::base::os::winec7::OSFile::create |
( |
void |
| ) |
const |
Creates a file.
- Returns
- true on success, false if failed.
◆ exists()
bool imt::base::os::winec7::OSFile::exists |
( |
void |
| ) |
const |
Checks if a file exists.
- Returns
- true if exists, false otherwise
◆ getName()
const std::wstring& imt::base::os::winec7::OSFile::getName |
( |
void |
| ) |
const |
Gets the name of the file.
- Returns
- the file name passed to the constructor
◆ read()
Reads data from the OSFile into buffer.
- Parameters
-
buffer[] | read buffer |
bufferSize | read buffer size |
readOffset | is incremented on a successful read |
- Returns
- whether or not the operation was successful
◆ removeFile()
bool imt::base::os::winec7::OSFile::removeFile |
( |
void |
| ) |
const |
Deletes a file.
- Returns
- true on success, false if failed.
◆ size()
uint32_t imt::base::os::winec7::OSFile::size |
( |
void |
| ) |
const |
Returns the file size.
- Returns
- file size
◆ write()
bool imt::base::os::winec7::OSFile::write |
( |
const uint8_t |
buffer[], |
|
|
const uint32_t |
bufferSize |
|
) |
| |
Writes data from the buffer into the OSFile, overwriting any existing data.
- Parameters
-
buffer[] | write buffer |
bufferSize | write buffer size |
- Returns
- whether or not the operation was successful
The documentation for this class was generated from the following file:
- D:/_Work/10/s/Imt.Base/Imt.Base.OS.WinEC7/OSFile.h