|
HosrDiretta
|
pointer and length in the read function call More...
#include <Buffer.hpp>
Public Member Functions | |
| BufferCS (std::uint8_t *d, size_t s) | |
| Constructs a BufferCS with the given data pointer and size. | |
| template<typename array> | |
| BufferCS (array &buffer) | |
| Constructs a BufferCS from a static array, setting Data to the array's address and Size to its total byte size. | |
| std::uint8_t * | get () |
| Returns the data pointer. | |
| const std::uint8_t * | get () const |
| Returns the data pointer. | |
| char * | get_char () |
| Returns the data pointer reinterpreted as a char pointer. | |
| const char * | get_char () const |
| Returns the data pointer reinterpreted as a const char pointer. | |
| const std::uint64_t * | get_64 () const |
| Returns the data pointer reinterpreted as a pointer to std::uint64_t. | |
| const std::uint32_t * | get_32 () const |
| Returns the data pointer reinterpreted as a pointer to const std::uint32_t. | |
| const std::uint16_t * | get_16 () const |
| Returns the data pointer reinterpreted as a pointer to const std::uint16_t. | |
| const std::uint8_t * | get_8 () const |
| Returns the data pointer reinterpreted as a pointer to const std::uint8_t. | |
| size_t | size () const |
| Returns the size of the buffer. | |
| bool | empty () const |
| Checks if the buffer is empty. | |
| operator BufferCS_const () const | |
| Checks if the buffer is null (Data is nullptr and Size is 0). | |
| std::string | dump () const |
| Returns a textual dump of the buffer's contents. | |
| std::string | get_string () const |
| Returns a textual dump of the buffer's contents up to the specified size. | |
| const std::uint8_t * | begin () const |
| Returns an iterator to the beginning of the buffer. | |
| const std::uint8_t * | end () const |
| Returns an iterator to the end of the buffer. | |
| std::uint8_t * | begin () |
| Returns an iterator to the beginning of the buffer. | |
| std::uint8_t * | end () |
| Returns an iterator to the end of the buffer. | |
| const std::uint8_t & | operator[] (size_t n) const |
| Access operator to get the byte at index n. | |
| std::uint8_t & | operator[] (size_t n) |
| Access operator to get the byte at index n. | |
pointer and length in the read function call