file.cpp File Reference
Bindary file writing and reading tools. More...
Functions | |
| void | write_int8 (std::ostream &s, int8_t value) |
| Write int8_t value into stream os. More... | |
| void | write_int16 (std::ostream &s, int16_t value) |
| Write int16_t value into stream os. More... | |
| void | write_int32 (std::ostream &s, int32_t value) |
| Write int32_t value into stream os. More... | |
| void | write_uint32 (std::ostream &s, uint32_t value) |
| Write uint32_t value into stream os. More... | |
| void | write_double (std::ostream &s, double value) |
| Write double value into stream os. More... | |
| void | write_compressed_block (std::ostream &s, uint32_t len, const int8_t *data) |
| Write data block data of length len bytes into stream os in compressed form. More... | |
| int8_t | read_int8 (std::istream &s) |
| Read int8_t from stream is. More... | |
| int16_t | read_int16 (std::istream &s) |
| Read int16_t from stream is. More... | |
| int32_t | read_int32 (std::istream &s) |
| Read int32_t from stream is. More... | |
| uint32_t | read_uint32 (std::istream &s) |
| Read uint32_t from stream is. More... | |
| double | read_double (std::istream &s) |
| Readd double from stream is. More... | |
| uint32_t | read_compressed_block (std::istream &s, uint32_t len, int8_t *dest) |
| Read compressed data block of length len bytes from stream is. More... | |
Detailed Description
Bindary file writing and reading tools.
Function Documentation
| uint32_t read_compressed_block | ( | std::istream & | s, |
| uint32_t | len, | ||
| int8_t * | dest | ||
| ) |
Read compressed data block of length len bytes from stream is.
| double read_double | ( | std::istream & | s | ) |
Readd double from stream is.
| int16_t read_int16 | ( | std::istream & | s | ) |
Read int16_t from stream is.
| int32_t read_int32 | ( | std::istream & | s | ) |
Read int32_t from stream is.
| int8_t read_int8 | ( | std::istream & | s | ) |
Read int8_t from stream is.
| uint32_t read_uint32 | ( | std::istream & | s | ) |
Read uint32_t from stream is.
| void write_compressed_block | ( | std::ostream & | s, |
| uint32_t | len, | ||
| const int8_t * | data | ||
| ) |
Write data block data of length len bytes into stream os in compressed form.
| void write_double | ( | std::ostream & | s, |
| double | value | ||
| ) |
Write double value into stream os.
| void write_int16 | ( | std::ostream & | s, |
| int16_t | value | ||
| ) |
Write int16_t value into stream os.
| void write_int32 | ( | std::ostream & | s, |
| int32_t | value | ||
| ) |
Write int32_t value into stream os.
| void write_int8 | ( | std::ostream & | s, |
| int8_t | value | ||
| ) |
Write int8_t value into stream os.
| void write_uint32 | ( | std::ostream & | s, |
| uint32_t | value | ||
| ) |
Write uint32_t value into stream os.