eosio::datastream< size_t >
#include <datastream.hpp>
Public Functions
Name | |
---|---|
datastream(size_t init_size =0) | |
bool | skip(size_t s) |
bool | write(const char * , size_t s) |
bool | write(char ) |
bool | write(const void * , size_t s) |
bool | put(char ) |
bool | valid() const |
bool | seekp(size_t p) |
size_t | tellp() const |
size_t | remaining() const |
Detailed Description
class eosio::datastream< size_t >;
Specialization of datastream used to help determine the final size of a serialized value
Public Functions Documentation
function datastream
inline datastream(
size_t init_size =0
)
Parameters:
- init_size - The initial size
Construct a new specialized datastream object given the initial size
function skip
inline bool skip(
size_t s
)
Parameters:
- s - The amount of size to increase
Return: true
Increment the size by s. This behaves the same as write( const char* ,size_t s ).
function write
inline bool write(
const char * ,
size_t s
)
Parameters:
- s - The amount of size to increase
Return: true
Increment the size by s. This behaves the same as skip( size_t s )
function write
inline bool write(
char
)
Parameters:
- s - The amount of size to increase
Return: true
Increment the size by s. This behaves the same as skip( size_t s )
function write
inline bool write(
const void * ,
size_t s
)
Parameters:
- s - The amount of size to increase
Return: true
Increment the size by s. This behaves the same as skip( size_t s )
function put
inline bool put(
char
)
Return: true
Increment the size by one
function valid
inline bool valid() const
Return: true
Check validity. It's always valid
function seekp
inline bool seekp(
size_t p
)
Parameters:
- p - The new size
Return: true
Set new size
function tellp
inline size_t tellp() const
Return: size_t - The size
Get the size
function remaining
inline size_t remaining() const
Return: size_t - 0
Always returns 0
Updated on 2022-12-05 at 15:38:07 +0000