Honeycomb  0.1
Component-Model Framework
Classes | Namespaces | Typedefs | Functions
Bytes.h File Reference
#include "Honey/Misc/BitOp.h"
#include "Honey/Misc/Range.h"
#include "Honey/Memory/Buffer.h"
Include dependency graph for Bytes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  honey::ByteArray< N >
 Fixed array of N bytes. More...
 
class  honey::Bytes
 String of bytes. More...
 
struct  honey::ByteArray< N >
 Fixed array of N bytes. More...
 

Namespaces

 honey
 Global Honeycomb namespace.
 

Typedefs

typedef uint8 honey::byte
 An unsigned 8-bit integer. More...
 
typedef Buffer< byte > honey::ByteBuf
 A buffer of bytes. More...
 
typedef Buffer< const byte > honey::ByteBufConst
 

Functions

constexpr byte honey::operator""_b (unsigned long long int i)
 Construct byte from integer literal (eg. 128_b) More...
 
constexpr byte honey::operator""_b (char c)
 Construct byte from character literal (eg. 'x'_b) More...
 
Bytes honey::operator""_b (const char *str, szt len)
 Construct bytes from string literal (eg. "something"_b) More...
 
ostream & honey::operator<< (ostream &os, ByteBufConst val)
 Write byte buffer to string stream using current encoding. More...
 
template<class Int >
std::enable_if< std::is_integral< Int >::value, Bytes >::type honey::toBytes (Int val, Endian order=Endian::big)
 Convert integral value to bytes. More...
 
template<class Int >
std::enable_if< std::is_integral< Int >::value, Int >::type honey::fromBytes (const Bytes &bs, Endian order=Endian::big)
 Convert bytes to integral value. More...