#include <serialization.h>
Public Member Functions | |
template<typename T > | |
void | save (const T &val) |
template<typename T > | |
void | save (T *const &val) |
template<typename T > | |
void | save_binary (T *ptr, size_t size) |
SaveArchive (const char *filename) | |
SaveArchive (FILE *stream) | |
~SaveArchive () | |
Private Member Functions | |
void | endBlock () |
void | flushBlock () |
void | initBlock () |
Private Attributes | |
char * | buffer_ |
char * | buffer_blocks_ |
char * | compressed_buffer_ |
int | first_block_ |
LZ4_streamHC_t * | lz4Stream |
LZ4_streamHC_t | lz4Stream_body |
size_t | offset_ |
bool | own_stream_ |
FILE * | stream_ |
Definition at line 376 of file serialization.h.
rtflann::serialization::SaveArchive::SaveArchive | ( | const char * | filename | ) | [inline] |
Definition at line 482 of file serialization.h.
rtflann::serialization::SaveArchive::SaveArchive | ( | FILE * | stream | ) | [inline] |
Definition at line 489 of file serialization.h.
rtflann::serialization::SaveArchive::~SaveArchive | ( | ) | [inline] |
Definition at line 494 of file serialization.h.
void rtflann::serialization::SaveArchive::endBlock | ( | ) | [inline, private] |
Definition at line 467 of file serialization.h.
void rtflann::serialization::SaveArchive::flushBlock | ( | ) | [inline, private] |
Definition at line 412 of file serialization.h.
void rtflann::serialization::SaveArchive::initBlock | ( | ) | [inline, private] |
Definition at line 394 of file serialization.h.
void rtflann::serialization::SaveArchive::save | ( | const T & | val | ) | [inline] |
Definition at line 508 of file serialization.h.
void rtflann::serialization::SaveArchive::save | ( | T *const & | val | ) | [inline] |
Definition at line 518 of file serialization.h.
void rtflann::serialization::SaveArchive::save_binary | ( | T * | ptr, |
size_t | size | ||
) | [inline] |
Definition at line 525 of file serialization.h.
char* rtflann::serialization::SaveArchive::buffer_ [private] |
Definition at line 385 of file serialization.h.
char* rtflann::serialization::SaveArchive::buffer_blocks_ [private] |
Definition at line 389 of file serialization.h.
char* rtflann::serialization::SaveArchive::compressed_buffer_ [private] |
Definition at line 390 of file serialization.h.
int rtflann::serialization::SaveArchive::first_block_ [private] |
Definition at line 388 of file serialization.h.
Definition at line 392 of file serialization.h.
Definition at line 391 of file serialization.h.
size_t rtflann::serialization::SaveArchive::offset_ [private] |
Definition at line 386 of file serialization.h.
bool rtflann::serialization::SaveArchive::own_stream_ [private] |
Definition at line 384 of file serialization.h.
FILE* rtflann::serialization::SaveArchive::stream_ [private] |
Based on blockStreaming_doubleBuffer code at: https://github.com/Cyan4973/lz4/blob/master/examples/blockStreaming_doubleBuffer.c
Definition at line 383 of file serialization.h.