|
BitMagic-C++
|
Sparse vector serialization. More...

Data Structures | |
| struct | bm::sparse_vector_serial_layout< SV > |
| layout class for serialization buffer structure More... | |
| class | bm::sparse_vector_serializer< SV > |
Functions | |
| template<class SV> | |
| void | bm::sparse_vector_serialize (const SV &sv, sparse_vector_serial_layout< SV > &sv_layout, bm::word_t *temp_block=0) |
| Serialize sparse vector into a memory buffer(s) structure. | |
| template<class SV> | |
| int | bm::sparse_vector_deserialize (SV &sv, const unsigned char *buf, bm::word_t *temp_block=0) |
| Deserialize sparse vector. | |
Sparse vector serialization.
| int bm::sparse_vector_deserialize | ( | SV & | sv, |
| const unsigned char * | buf, | ||
| bm::word_t * | temp_block = 0 ) |
Deserialize sparse vector.
| sv | - target sparse vector |
| buf | - source memory buffer |
| temp_block | - temporary block buffer to avoid re-allocations |
Definition at line 551 of file bmsparsevec_serial.h.
References bm::sparse_vector_deserializer< SV >::deserialize().
| void bm::sparse_vector_serialize | ( | const SV & | sv, |
| sparse_vector_serial_layout< SV > & | sv_layout, | ||
| bm::word_t * | temp_block = 0 ) |
Serialize sparse vector into a memory buffer(s) structure.
| sv | - sparse vector to serialize |
| sv_layout | - buffer structure to keep the result |
| temp_block | - temporary buffer (allocate with BM_DECLARE_TEMP_BLOCK(x) for speed) |
Definition at line 526 of file bmsparsevec_serial.h.
References bm::sparse_vector_serializer< SV >::serialize().
Referenced by main(), SDemo1(), write_as_rsc_svector(), and write_as_svector().