#include <iostream>
#include <zlib.h>
#include "error.hpp"
Go to the source code of this file.
Defines | |
| #define | FILE_HPP 1 |
Functions | |
| void | write_int8 (std::ostream &s, int8_t value) |
| Write int8_t value into stream s. | |
| void | write_int16 (std::ostream &s, int16_t value) |
| Write int16_t value into stream s. | |
| void | write_int32 (std::ostream &s, int32_t value) |
| Write int32_t value into stream s. | |
| void | write_uint32 (std::ostream &s, uint32_t value) |
| Write uint32_t value into stream s. | |
| void | write_double (std::ostream &s, double value) |
| Write double value into stream s. | |
| void | write_compressed_block (std::ostream &s, uint32_t len, const int8_t *data) |
| Write data block data of length len bytes into stream s in compressed form. | |
| int8_t | read_int8 (std::istream &s) |
| int16_t | read_int16 (std::istream &s) |
| int32_t | read_int32 (std::istream &s) |
| uint32_t | read_uint32 (std::istream &s) |
| double | read_double (std::istream &s) |
| uint32_t | read_compressed_block (std::istream &s, uint32_t len, int8_t *dest) |
| #define FILE_HPP 1 |
| uint32_t read_compressed_block | ( | std::istream & | s, | |
| uint32_t | len, | |||
| int8_t * | dest | |||
| ) | [inline] |
| double read_double | ( | std::istream & | s | ) | [inline] |
| int16_t read_int16 | ( | std::istream & | s | ) | [inline] |
| int32_t read_int32 | ( | std::istream & | s | ) | [inline] |
| int8_t read_int8 | ( | std::istream & | s | ) | [inline] |
| uint32_t read_uint32 | ( | std::istream & | s | ) | [inline] |
| void write_compressed_block | ( | std::ostream & | s, | |
| uint32_t | len, | |||
| const int8_t * | data | |||
| ) | [inline] |
Write data block data of length len bytes into stream s in compressed form.
| void write_double | ( | std::ostream & | s, | |
| double | value | |||
| ) | [inline] |
Write double value into stream s.
| void write_int16 | ( | std::ostream & | s, | |
| int16_t | value | |||
| ) | [inline] |
Write int16_t value into stream s.
| void write_int32 | ( | std::ostream & | s, | |
| int32_t | value | |||
| ) | [inline] |
Write int32_t value into stream s.
| void write_int8 | ( | std::ostream & | s, | |
| int8_t | value | |||
| ) | [inline] |
Write int8_t value into stream s.
| void write_uint32 | ( | std::ostream & | s, | |
| uint32_t | value | |||
| ) | [inline] |
Write uint32_t value into stream s.
1.4.7