The Micro C++ Library
include/micxx/Buffer.hxx File Reference

Declaration of class micxx::Buffer. More...

#include <micxx/Config.hxx>
#include <micxx/traits/ToString.hxx>
#include <micxx/Exception.hxx>
#include <string>

Classes

class  micxx::Buffer
 A simple generic Buffer that could dynamically grow or shrink. More...

Namespaces

namespace  micxx
 

The Micro C++ Library.


Functions

template<typename IntType >
IntType micxx::getBE (const void *data)
 Parse an integer type IntType in big endianess byte order from the address given by data.
template<typename IntType >
IntType micxx::getLE (const void *data)
 Parse an integer type IntType in little endianess byte order from the address given by data.
template<typename IntType >
void micxx::setBE (void *dest, IntType value)
 Stores the integer type value into address given by dest in big endianess byte order.
template<typename IntType >
void micxx::setLE (void *dest, IntType value)
 Stores the integer type value into address given by dest in little endianess byte order.
template<typename Stream >
Stream & operator<< (Stream &stream, const micxx::Buffer &buffer)
 Same as buffer >> stream.

Detailed Description

Declaration of class micxx::Buffer.


Function Documentation

template<typename Stream >
Stream& operator<< ( Stream &  stream,
const micxx::Buffer buffer 
)

Same as buffer >> stream.

{
    __MICXXTRY__
    return buffer >> stream;
    __MICXXEND__
}