Public Types | |
enum | IOType { READ, WRITE, READWRITE, CREATE, CREATERW } |
enum | PosFrom { BEGIN, CURRENT, END } |
Public Member Functions | |
PLATFORM_API | File (IOType io) |
Конструктор | |
PLATFORM_API | File (char *name, IOType io=READ) |
Конструктор | |
PLATFORM_API bool | close () |
closes the file More... | |
_FORCEINLINE void * | getHeader () |
PLATFORM_API bool | open () |
opens or creates a new file More... | |
PLATFORM_API int | read (void *data, int count) |
read block of data from a file More... | |
PLATFORM_API char * | readAll () |
создает буфер разбером в файл и читает из него все содержимое | |
PLATFORM_API void | setFileName (char *) |
sets the name of the file | |
PLATFORM_API void | setPos (_int64 pos, int from) |
setting the position in the file More... | |
PLATFORM_API int | size () |
The total file size. More... | |
PLATFORM_API int | write (void *data, int count) |
writes a block of data to a file More... | |
File - A file object.
enum csad::File::IOType |
enum csad::File::PosFrom |
bool csad::File::close | ( | ) |
closes the file
Закрывает файл
|
inline |
Returns indicator file depends on your operating system
bool csad::File::open | ( | ) |
opens or creates a new file
Открывает файл
int csad::File::read | ( | void * | data, |
int | count | ||
) |
read block of data from a file
Read byte sequence using cache buffer.
data | - buffer to load the data. |
count | - the size of the buffer in bytes. |
void csad::File::setPos | ( | _int64 | pos, |
int | from | ||
) |
setting the position in the file
To set the file position.
pos | - the offset in bytes. |
from | - defines the form of displacement. |
int csad::File::size | ( | ) |
The total file size.
Общий размер файла
int csad::File::write | ( | void * | data, |
int | count | ||
) |
writes a block of data to a file
The entry sequence of bytes using cache buffer.
data | - buffer data being written. |
count | - the size of the buffer in bytes. |