BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
#include <datastream.hpp>
Public Member Functions | |
datastream (T start, size_t s) | |
void | skip (size_t s) |
bool | read (char *d, size_t s) |
bool | write (const char *d, size_t s) |
bool | put (char c) |
bool | get (unsigned char &c) |
bool | get (char &c) |
T | pos () const |
bool | valid () const |
bool | seekp (size_t p) |
size_t | tellp () const |
size_t | remaining () const |
The purpose of this datastream is to provide a fast, effecient, means of calculating the amount of data "about to be written" and then writing it. This means having two modes of operation, "test run" where you call the entire pack sequence calculating the size, and then actually packing it after doing a single allocation.
Definition at line 20 of file datastream.hpp.
|
inline |
Definition at line 22 of file datastream.hpp.
|
inline |
Definition at line 55 of file datastream.hpp.
|
inline |
Definition at line 54 of file datastream.hpp.
|
inline |
Definition at line 65 of file datastream.hpp.
|
inline |
Definition at line 45 of file datastream.hpp.
|
inline |
Definition at line 27 of file datastream.hpp.
|
inline |
Definition at line 69 of file datastream.hpp.
|
inline |
Definition at line 67 of file datastream.hpp.
|
inline |
Definition at line 26 of file datastream.hpp.
|
inline |
Definition at line 68 of file datastream.hpp.
|
inline |
Definition at line 66 of file datastream.hpp.
|
inline |
Definition at line 36 of file datastream.hpp.