class to stream binary data
More...
#include <dabc/Record.h>
|
static uint64_t | str_storesize (const std::string &str) |
| Returns bytes count, required to store string. More...
|
|
class to stream binary data
Definition at line 41 of file Record.h.
◆ iostream() [1/2]
dabc::iostream::iostream |
( |
| ) |
|
|
inlineprotected |
◆ iostream() [2/2]
dabc::iostream::iostream |
( |
bool |
isinp | ) |
|
|
inlineprotected |
◆ ~iostream()
virtual dabc::iostream::~iostream |
( |
| ) |
|
|
inlinevirtual |
◆ tmpbuf_size()
virtual uint64_t dabc::iostream::tmpbuf_size |
( |
| ) |
const |
|
inlineprotectedvirtual |
return number of bytes which are directly available in temporary buffer
Reimplemented in dabc::memstream.
Definition at line 46 of file Record.h.
◆ tmpbuf()
virtual char* dabc::iostream::tmpbuf |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ is_input()
bool dabc::iostream::is_input |
( |
| ) |
const |
|
inline |
◆ is_output()
bool dabc::iostream::is_output |
( |
| ) |
const |
|
inline |
◆ is_real()
virtual bool dabc::iostream::is_real |
( |
| ) |
const |
|
inlinevirtual |
◆ skip_object()
bool dabc::iostream::skip_object |
( |
| ) |
|
Insted of reading object we read size and shift on that size Only can be done where size stored as 32-bit integer in the current position and contains number of 64-bit stored values, including size itself.
Definition at line 23 of file Record.cxx.
◆ verify_size()
bool dabc::iostream::verify_size |
( |
uint64_t |
pos, |
|
|
uint64_t |
sz |
|
) |
| |
◆ write()
virtual bool dabc::iostream::write |
( |
const void * |
src, |
|
|
uint64_t |
len |
|
) |
| |
|
inlinevirtual |
◆ read()
virtual bool dabc::iostream::read |
( |
void * |
tgt, |
|
|
uint64_t |
len |
|
) |
| |
|
inlinevirtual |
◆ shift()
virtual bool dabc::iostream::shift |
( |
uint64_t |
len | ) |
|
|
inlinevirtual |
◆ size()
virtual uint64_t dabc::iostream::size |
( |
| ) |
const |
|
inlinevirtual |
◆ maxstoresize()
virtual uint64_t dabc::iostream::maxstoresize |
( |
| ) |
const |
|
inlinevirtual |
◆ write_int32()
bool dabc::iostream::write_int32 |
( |
int32_t |
v | ) |
|
|
inline |
◆ write_uint32()
bool dabc::iostream::write_uint32 |
( |
uint32_t |
v | ) |
|
|
inline |
◆ write_int64()
bool dabc::iostream::write_int64 |
( |
int64_t |
v | ) |
|
|
inline |
◆ write_uint64()
bool dabc::iostream::write_uint64 |
( |
uint64_t |
v | ) |
|
|
inline |
◆ write_double()
bool dabc::iostream::write_double |
( |
double |
v | ) |
|
|
inline |
◆ read_int32()
bool dabc::iostream::read_int32 |
( |
int32_t & |
v | ) |
|
|
inline |
◆ read_uint32()
bool dabc::iostream::read_uint32 |
( |
uint32_t & |
v | ) |
|
|
inline |
◆ read_int64()
bool dabc::iostream::read_int64 |
( |
int64_t & |
v | ) |
|
|
inline |
◆ read_uint64()
bool dabc::iostream::read_uint64 |
( |
uint64_t & |
v | ) |
|
|
inline |
◆ read_double()
bool dabc::iostream::read_double |
( |
double & |
v | ) |
|
|
inline |
◆ str_storesize()
uint64_t dabc::iostream::str_storesize |
( |
const std::string & |
str | ) |
|
|
static |
Returns bytes count, required to store string.
Bytes count rounded to 64 bit
Definition at line 68 of file Record.cxx.
◆ write_str()
bool dabc::iostream::write_str |
( |
const std::string & |
str | ) |
|
Store string in the stream.
Definition at line 76 of file Record.cxx.
◆ read_str()
bool dabc::iostream::read_str |
( |
std::string & |
str | ) |
|
Restore string from the stream.
Definition at line 94 of file Record.cxx.
◆ fInput
bool dabc::iostream::fInput |
|
protected |
The documentation for this class was generated from the following files: