|
HosrDiretta
|
pointer and length in the write function call More...
#include <Buffer.hpp>
Public Member Functions | |
| BufferCS_const (const std::uint8_t *d, size_t s) | |
| Constructs a BufferCS_const with the given data pointer and size. | |
| template<typename array> | |
| BufferCS_const (array &buffer) | |
| Constructs a BufferCS_const from a static array, setting Data to the array's address and Size to its total byte size. | |
| const std::uint8_t * | get () const |
| Returns the data pointer. | |
| const char * | get_char () const |
| Returns the data pointer reinterpreted as a char pointer. | |
| const std::uint64_t * | get_64 () const |
| Returns the data pointer reinterpreted as a pointer to const 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. | |
| bool | null () const |
| Checks if the buffer is null (Data is nullptr and Size is 0). | |
| std::uint8_t | operator[] (size_t n) const |
| Access operator to get the byte at index n. | |
| bool | operator== (const BufferCS_const &in) const |
| Equality operator to compare two BufferCS_const objects. | |
| bool | operator!= (const BufferCS_const &in) const |
| std::string | dump () const |
| Returns a textual dump of the buffer's contents. | |
| std::string | dump (std::size_t) const |
| Returns a textual dump of the buffer's contents up to the specified size. | |
| std::string | get_string () const |
| Returns the buffer's contents as a std::string. | |
| 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. | |
Static Public Member Functions | |
| static std::string | get_string (const std::uint8_t *s, const std::uint8_t *e) |
| Static method to convert a byte range to a std::string. | |
pointer and length in the write function call