A buffer helper class.
More...
#include <bufferhelper.hpp>
|
| static std::string | toBase64 (const ByteVector &buf) |
| |
| static ByteVector | fromBase64 (const std::string &b64str) |
| |
| static std::string | getHex (const ByteVector &buffer) |
| |
| static std::string | getHex (const std::string &buffer) |
| |
| static ByteVector | fromHexString (std::string hexString) |
| |
| static std::string | getStdString (const ByteVector &buffer) |
| |
| static void | setUShort (ByteVector &buffer, const unsigned short &value) |
| |
| static unsigned short | getUShort (const ByteVector &buffer, size_t &offset) |
| |
| static void | setInt32 (ByteVector &buffer, const long &value) |
| |
| static long | getInt32 (const ByteVector &buffer, size_t &offset) |
| |
| static unsigned long | getUInt32 (const ByteVector &buffer, size_t &offset) |
| |
| static void | setUInt32 (ByteVector &buffer, const unsigned long &value) |
| |
| static void | setUInt64 (ByteVector &buffer, const unsigned long long &value) |
| |
| static uint64_t | getUInt64 (const ByteVector &buffer, size_t &offset) |
| |
| static void | setUInt16 (ByteVector &buffer, const unsigned long &value) |
| |
| static unsigned long | getUInt16 (const ByteVector &buffer, size_t &offset) |
| |
| static void | setString (ByteVector &buffer, const std::string &value) |
| |
| template<typename Buffer > |
| static bool | allZeroes (const Buffer &buf) |
| |
◆ allZeroes()
template<typename Buffer >
| static bool logicalaccess::BufferHelper::allZeroes |
( |
const Buffer & |
buf | ) |
|
|
inlinestatic |
Check if the buffer contains either no byte, or only zeroed bytes
◆ fromBase64()
| ByteVector logicalaccess::BufferHelper::fromBase64 |
( |
const std::string & |
b64str | ) |
|
|
static |
◆ fromHexString()
| ByteVector logicalaccess::BufferHelper::fromHexString |
( |
std::string |
hexString | ) |
|
|
static |
◆ getHex() [1/2]
| std::string logicalaccess::BufferHelper::getHex |
( |
const ByteVector & |
buffer | ) |
|
|
static |
◆ getHex() [2/2]
| std::string logicalaccess::BufferHelper::getHex |
( |
const std::string & |
buffer | ) |
|
|
static |
◆ getInt32()
| long logicalaccess::BufferHelper::getInt32 |
( |
const ByteVector & |
buffer, |
|
|
size_t & |
offset |
|
) |
| |
|
static |
◆ getStdString()
| std::string logicalaccess::BufferHelper::getStdString |
( |
const ByteVector & |
buffer | ) |
|
|
static |
◆ getUInt16()
| unsigned long logicalaccess::BufferHelper::getUInt16 |
( |
const ByteVector & |
buffer, |
|
|
size_t & |
offset |
|
) |
| |
|
static |
◆ getUInt32()
| unsigned long logicalaccess::BufferHelper::getUInt32 |
( |
const ByteVector & |
buffer, |
|
|
size_t & |
offset |
|
) |
| |
|
static |
◆ getUInt64()
| uint64_t logicalaccess::BufferHelper::getUInt64 |
( |
const ByteVector & |
buffer, |
|
|
size_t & |
offset |
|
) |
| |
|
static |
◆ getUShort()
| unsigned short logicalaccess::BufferHelper::getUShort |
( |
const ByteVector & |
buffer, |
|
|
size_t & |
offset |
|
) |
| |
|
static |
◆ setInt32()
| void logicalaccess::BufferHelper::setInt32 |
( |
ByteVector & |
buffer, |
|
|
const long & |
value |
|
) |
| |
|
static |
◆ setString()
| void logicalaccess::BufferHelper::setString |
( |
ByteVector & |
buffer, |
|
|
const std::string & |
value |
|
) |
| |
|
static |
◆ setUInt16()
| void logicalaccess::BufferHelper::setUInt16 |
( |
ByteVector & |
buffer, |
|
|
const unsigned long & |
value |
|
) |
| |
|
static |
◆ setUInt32()
| void logicalaccess::BufferHelper::setUInt32 |
( |
ByteVector & |
buffer, |
|
|
const unsigned long & |
value |
|
) |
| |
|
static |
◆ setUInt64()
| void logicalaccess::BufferHelper::setUInt64 |
( |
ByteVector & |
buffer, |
|
|
const unsigned long long & |
value |
|
) |
| |
|
static |
◆ setUShort()
| void logicalaccess::BufferHelper::setUShort |
( |
ByteVector & |
buffer, |
|
|
const unsigned short & |
value |
|
) |
| |
|
static |
◆ toBase64()
| std::string logicalaccess::BufferHelper::toBase64 |
( |
const ByteVector & |
buf | ) |
|
|
static |
The documentation for this class was generated from the following files: