Honeycomb
0.1
Component-Model Framework
|
Bytes to string encodings. More...
Functions | |
bool | reg (const Id &id, const function< ostream &(ostream &os, const Bytes &val)> &encode, const function< istream &(istream &os, Bytes &val)> &decode) |
Register an encoding. More... | |
String | hex_encode (ByteBufConst bs) |
Convert bytes to string using hexadecimal encoding (high-nibble-first) More... | |
Bytes | hex_decode (const String &string) |
Convert string to bytes using hexadecimal decoding (high-nibble-first) More... | |
String | dec_encode (ByteBufConst bs) |
Convert bytes to string using decimal encoding (big-endian integer) More... | |
Bytes | dec_decode (const String &string) |
Convert string to bytes using decimal decoding (big-endian integer) More... | |
String | base32_encode (ByteBufConst bs) |
Convert bytes to string using base32 encoding. More... | |
Bytes | base32_decode (const String &string) |
Convert string to bytes using base32 decoding. More... | |
String | base64_encode (ByteBufConst bs) |
Convert bytes to string using base64 encoding. More... | |
Bytes | base64_decode (const String &string) |
Convert string to bytes using base64 decoding. More... | |
bool | isHex (Char c) |
Check if character is in hexadecimal charset (numeric and case-insensitive [a-f]) More... | |
Char | toHex (byte b) |
Convert byte to hexadecimal character. More... | |
byte | fromHex (Char c) |
Convert hexadecimal character to byte. More... | |
ostream & | hex (ostream &os) |
Use hexadecimal encoding (high-nibble-first) when writing bytes to a string stream. More... | |
istream & | hex (istream &is) |
Use hexadecimal decoding (high-nibble-first) when reading bytes from a string stream. More... | |
bool | isDec (Char c) |
Check if character is in decimal charset (numeric) More... | |
Char | toDec (byte b) |
Convert byte to decimal character. More... | |
byte | fromDec (Char c) |
Convert decimal character to byte. More... | |
ostream & | dec (ostream &os) |
Use decimal encoding (big-endian integer) when writing bytes to a string stream. More... | |
istream & | dec (istream &is) |
Use decimal decoding (big-endian integer) when reading bytes from a string stream. More... | |
ostream & | u8 (ostream &os) |
Use UTF-8 encoding when writing bytes to a string stream. More... | |
istream & | u8 (istream &is) |
Use UTF-8 decoding when reading bytes from a string stream. More... | |
bool | isBase32 (Char c) |
Check if character is in base32 charset (case-insensitive [a-z], numeric [2-7], and padding '=') More... | |
Char | toBase32 (byte b) |
Convert byte to base32 character. More... | |
byte | fromBase32 (Char c) |
Convert base32 character to byte. More... | |
ostream & | base32 (ostream &os) |
Use base32 encoding when writing bytes to a string stream. More... | |
istream & | base32 (istream &is) |
Use base32 decoding when reading bytes from a string stream. More... | |
bool | isBase64 (Char c) |
Check if character is in base64 charset (alphanumeric, symbols [+/], and padding '=') More... | |
Char | toBase64 (byte b) |
Convert byte to base64 character. More... | |
byte | fromBase64 (Char c) |
Convert base64 character to byte. More... | |
ostream & | base64 (ostream &os) |
Use base64 encoding when writing bytes to a string stream. More... | |
istream & | base64 (istream &is) |
Use base64 decoding when reading bytes from a string stream. More... | |
Variables | |
static auto | __hex |
static auto | __dec |
static auto | __u8 |
static auto | __base32 |
static auto | __base64 |
Bytes to string encodings.
|
inline |
Use base32 encoding when writing bytes to a string stream.
|
inline |
Use base32 decoding when reading bytes from a string stream.
Convert string to bytes using base32 decoding.
String honey::encode::base32_encode | ( | ByteBufConst | bs | ) |
Convert bytes to string using base32 encoding.
|
inline |
Use base64 encoding when writing bytes to a string stream.
|
inline |
Use base64 decoding when reading bytes from a string stream.
Convert string to bytes using base64 decoding.
String honey::encode::base64_encode | ( | ByteBufConst | bs | ) |
Convert bytes to string using base64 encoding.
|
inline |
Use decimal encoding (big-endian integer) when writing bytes to a string stream.
|
inline |
Use decimal decoding (big-endian integer) when reading bytes from a string stream.
Convert string to bytes using decimal decoding (big-endian integer)
String honey::encode::dec_encode | ( | ByteBufConst | bs | ) |
Convert bytes to string using decimal encoding (big-endian integer)
|
inline |
Use hexadecimal encoding (high-nibble-first) when writing bytes to a string stream.
|
inline |
Use hexadecimal decoding (high-nibble-first) when reading bytes from a string stream.
Convert string to bytes using hexadecimal decoding (high-nibble-first)
String honey::encode::hex_encode | ( | ByteBufConst | bs | ) |
Convert bytes to string using hexadecimal encoding (high-nibble-first)
|
inline |
Check if character is in base32 charset (case-insensitive [a-z], numeric [2-7], and padding '=')
|
inline |
Check if character is in base64 charset (alphanumeric, symbols [+/], and padding '=')
|
inline |
Check if character is in decimal charset (numeric)
|
inline |
Check if character is in hexadecimal charset (numeric and case-insensitive [a-f])
bool honey::encode::reg | ( | const Id & | id, |
const function< ostream &(ostream &os, const Bytes &val)> & | encode, | ||
const function< istream &(istream &os, Bytes &val)> & | decode | ||
) |
Register an encoding.
|
inline |
Use UTF-8 encoding when writing bytes to a string stream.
|
inline |
Use UTF-8 decoding when reading bytes from a string stream.
|
static |
|
static |
|
static |
|
static |
|
static |