Inherits tpie::bits::serialization_reader_base.
Public Member Functions | |
void | open (std::string path) |
void | open (temp_file &tempFile) |
bool | can_read () |
stream_size_type | offset () |
Number of bytes read, not including the header. More... | |
void | close () |
void | read (char *const s, const memory_size_type n) |
Read n bytes from stream into buffer starting at s. More... | |
template<typename T > | |
void | unserialize (T &v) |
Unserialize an unserializable item from the stream. More... | |
template<typename IT > | |
void | unserialize (IT a, IT b) |
Unserialize a sequence of unserializable items from the stream. More... | |
stream_size_type | file_size () |
Size of file in bytes, including the header. More... | |
stream_size_type | size () |
Size of file in bytes, not including the header. More... | |
Static Public Member Functions | |
static memory_size_type | block_size () |
static memory_size_type | memory_usage () |
Protected Member Functions | |
void | next_block () override |
void | open (std::string path, bool reverse) |
void | read_block (const stream_size_type blk) |
Protected Attributes | |
tpie::array< char > | m_block |
stream_size_type | m_size |
memory_size_type | m_index |
memory_size_type | m_blockSize |
Definition at line 357 of file serialization_stream.h.
|
inherited |
Size of file in bytes, including the header.
stream_size_type tpie::serialization_reader::offset | ( | ) |
Number of bytes read, not including the header.
For progress reporting.
Referenced by tpie::pipelining::serialization_bits::input_t< dest_t >::go(), and tpie::pipelining::serialization_bits::buffer_output_t< dest_t >::go().
|
inlineinherited |
Read n bytes from stream into buffer starting at s.
s | Buffer to contain the read data. |
n | Number of bytes to read. |
Definition at line 286 of file serialization_stream.h.
References tpie::array< T, Allocator >::get().
|
inherited |
Size of file in bytes, not including the header.
For progress reporting.
Referenced by tpie::pipelining::serialization_bits::input_t< dest_t >::propagate(), tpie::pipelining::serialization_bits::reverser_output_t< dest_t >::propagate(), tpie::pipelining::serialization_bits::reverser_pull_output_t< T >::propagate(), tpie::pipelining::serialization_bits::buffer_output_t< dest_t >::propagate(), and tpie::pipelining::serialization_bits::buffer_pull_output_t< T >::propagate().
|
inlineinherited |
Unserialize an unserializable item from the stream.
An item of the given type must exist at the current point in the stream.
The code stream.unserialize(v) just calls unserialize(stream, v) via ADL.
Definition at line 320 of file serialization_stream.h.
References tpie::unserialize().
Referenced by tpie::pipelining::serialization_bits::input_t< dest_t >::go(), tpie::pipelining::serialization_bits::reverser_output_t< dest_t >::go(), tpie::pipelining::serialization_bits::buffer_output_t< dest_t >::go(), and tpie::bits::serialization_reader_base::unserialize().
|
inlineinherited |
Unserialize a sequence of unserializable items from the stream.
A sequence of the given item type must exist at the current point in the stream.
The code stream.unserialize(a, b) just calls unserialize(stream, a, b) via ADL.
Definition at line 335 of file serialization_stream.h.
References tpie::unserialize(), and tpie::bits::serialization_reader_base::unserialize().