Bindary file writing and reading tools. More...
#include <iostream>
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | FILEID_GEOMETRY 1001 |
#define | FILEID_FUNCSOLID 2001 |
#define | FILEID_CSGSOLID 2002 |
#define | FILEID_DXFSOLID 2003 |
#define | FILEID_STLSOLID 2004 |
#define | FILEID_PARTICLEDB2D 3001 |
#define | FILEID_PARTICLEDBCYL 3002 |
#define | FILEID_PARTICLEDB3D 3003 |
#define | FILEID_SCALARFIELD 4001 |
#define | FILEID_VECTORFIELD 5001 |
Functions | |
void | write_int8 (std::ostream &os, int8_t value) |
Write int8_t value into stream os. More... | |
void | write_int16 (std::ostream &os, int16_t value) |
Write int16_t value into stream os. More... | |
void | write_int32 (std::ostream &os, int32_t value) |
Write int32_t value into stream os. More... | |
void | write_uint32 (std::ostream &os, uint32_t value) |
Write uint32_t value into stream os. More... | |
void | write_double (std::ostream &os, double value) |
Write double value into stream os. More... | |
void | write_compressed_block (std::ostream &os, 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 &is) |
Read int8_t from stream is. More... | |
int16_t | read_int16 (std::istream &is) |
Read int16_t from stream is. More... | |
int32_t | read_int32 (std::istream &is) |
Read int32_t from stream is. More... | |
uint32_t | read_uint32 (std::istream &is) |
Read uint32_t from stream is. More... | |
double | read_double (std::istream &is) |
Readd double from stream is. More... | |
uint32_t | read_compressed_block (std::istream &is, uint32_t len, int8_t *dest) |
Read compressed data block of length len bytes from stream is. More... | |
Bindary file writing and reading tools.
#define FILEID_CSGSOLID 2002 |
#define FILEID_DXFSOLID 2003 |
#define FILEID_FUNCSOLID 2001 |
#define FILEID_GEOMETRY 1001 |
#define FILEID_PARTICLEDB2D 3001 |
#define FILEID_PARTICLEDB3D 3003 |
#define FILEID_PARTICLEDBCYL 3002 |
#define FILEID_SCALARFIELD 4001 |
#define FILEID_STLSOLID 2004 |
#define FILEID_VECTORFIELD 5001 |
uint32_t read_compressed_block | ( | std::istream & | is, |
uint32_t | len, | ||
int8_t * | dest | ||
) |
Read compressed data block of length len bytes from stream is.
double read_double | ( | std::istream & | is | ) |
Readd double from stream is.
int16_t read_int16 | ( | std::istream & | is | ) |
Read int16_t from stream is.
int32_t read_int32 | ( | std::istream & | is | ) |
Read int32_t from stream is.
int8_t read_int8 | ( | std::istream & | is | ) |
Read int8_t from stream is.
uint32_t read_uint32 | ( | std::istream & | is | ) |
Read uint32_t from stream is.
void write_compressed_block | ( | std::ostream & | os, |
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 & | os, |
double | value | ||
) |
Write double value into stream os.
void write_int16 | ( | std::ostream & | os, |
int16_t | value | ||
) |
Write int16_t value into stream os.
void write_int32 | ( | std::ostream & | os, |
int32_t | value | ||
) |
Write int32_t value into stream os.
void write_int8 | ( | std::ostream & | os, |
int8_t | value | ||
) |
Write int8_t value into stream os.
void write_uint32 | ( | std::ostream & | os, |
uint32_t | value | ||
) |
Write uint32_t value into stream os.