Honeycomb  0.1
Component-Model Framework
Functions
honey::bytestream Namespace Reference

ByteStream util. More...

Functions

template<class Int , typename std::enable_if< std::is_integral< typename mt::removeRef< Int >::type >::value, int >::type = 0>
auto varSize (Int &&val)
 Write or read a size (a positive integer) using a minimal number of bytes. More...
 
auto pushAlloc (const function< void *(szt)> &alloc)
 Push an allocator onto the input bytestream for subsequent unique/shared pointer object allocations. More...
 
auto popAlloc ()
 Pop an allocator from the input bytestream. More...
 
auto pushSharedTable (const Id &id)
 Push a shared table id onto the bytestream for subsequent shared pointer serialization. More...
 
auto popSharedTable ()
 Pop a shared table id from the bytestream. More...
 
auto reset ()
 Reset bytestream manipulator state. More...
 

Detailed Description

ByteStream util.

Function Documentation

auto honey::bytestream::popAlloc ( )
inline

Pop an allocator from the input bytestream.

auto honey::bytestream::popSharedTable ( )
inline

Pop a shared table id from the bytestream.

auto honey::bytestream::pushAlloc ( const function< void *(szt)> &  alloc)
inline

Push an allocator onto the input bytestream for subsequent unique/shared pointer object allocations.

auto honey::bytestream::pushSharedTable ( const Id id)
inline

Push a shared table id onto the bytestream for subsequent shared pointer serialization.

auto honey::bytestream::reset ( )
inline

Reset bytestream manipulator state.

template<class Int , typename std::enable_if< std::is_integral< typename mt::removeRef< Int >::type >::value, int >::type = 0>
auto honey::bytestream::varSize ( Int &&  val)

Write or read a size (a positive integer) using a minimal number of bytes.