31 std::istream is( &buf );
32 is.read(
reinterpret_cast<char*
>(&_opcode),
sizeof(_opcode));
33 is.read(
reinterpret_cast<char*
>(&
_wpos),
sizeof(
_wpos ));
34 is.read(
reinterpret_cast<char*
>(&
_rpos),
sizeof(
_rpos ));
54 std::ostream os( &buf );
55 os.write((
const char*)&_opcode,
sizeof( _opcode ));
56 os.write((
const char*)&
_wpos,
sizeof(
_wpos ));
57 os.write((
const char*)&
_rpos,
sizeof(
_rpos ));
size_t storageSize() const noexcept
Returns the total size (in bytes) of the underlying storage, regardles of wpos and rpos.
void clear() noexcept
Resets the entire storage and the read and write positions.
void Initialize(const U16 opCode, const size_t newres=200)
bool saveToBuffer(boost::asio::streambuf &buf) const
bool loadFromBuffer(boost::asio::streambuf &buf)
Handle console commands that start with a forward slash.
void efficient_clear(eastl::fixed_vector< T, nodeCount, bEnableOverflow, OverflowAllocator > &fixed_vector)