Akumuli
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | List of all members
Akumuli::Base128Int< TVal > Class Template Reference

Base 128 encoded integer. More...

#include <compression.h>

Public Member Functions

 Base128Int (TVal val)
 
const unsigned char * get (const unsigned char *begin, const unsigned char *end)
 
unsigned char * put (unsigned char *begin, const unsigned char *end) const
 
 operator TVal () const
 turn into integer
 

Detailed Description

template<class TVal>
class Akumuli::Base128Int< TVal >

Base 128 encoded integer.

Member Function Documentation

template<class TVal>
const unsigned char* Akumuli::Base128Int< TVal >::get ( const unsigned char *  begin,
const unsigned char *  end 
)
inline

Read base 128 encoded integer from the binary stream FwdIter - forward iterator.

template<class TVal>
unsigned char* Akumuli::Base128Int< TVal >::put ( unsigned char *  begin,
const unsigned char *  end 
) const
inline

Write base 128 encoded integer to the binary stream.

Returns
'begin' on error, iterator to next free region otherwise

The documentation for this class was generated from the following file: