#include "blob.hpp"


Public Member Functions | |
| blob_t () | |
| std::string | to_string () const noexcept |
| std::string | to_hexstring () const noexcept |
Static Public Member Functions | |
| static constexpr size_t | size () |
| static blob_t< size_ > | from_raw (const byte_t data[size_]) |
| static expected::Result< blob_t< size_ >, std::string > | from_string (std::string_view data) |
| static expected::Result< blob_t< size_ >, std::string > | from_hexstring (std::string_view hex) |
Base type which represents blob of fixed size.
std::string is convenient to use but it is not safe. We can not specify the fixed length for string.
For std::array it is possible, so we prefer it over std::string.
|
inline |
Initialize blob value
|
inlinestatic |

|
inlinestatic |

|
inlinestatic |

|
inlinestatic |
In compile-time returns size of current blob.

|
inlinenoexcept |
Converts current blob to hex string.

|
inlinenoexcept |
Converts current blob to std::string
