|
| | CopyableBuffer () noexcept |
| |
| | CopyableBuffer (const CopyableBuffer &other) noexcept |
| |
| CopyableBuffer & | operator= (const CopyableBuffer &other) noexcept |
| |
| | CopyableBuffer (CopyableBuffer &&other) noexcept |
| |
| CopyableBuffer & | operator= (CopyableBuffer &&other) noexcept |
| |
| | CopyableBuffer (const Buffer &other) noexcept |
| |
| | CopyableBuffer (Buffer &&other) noexcept |
| |
| | Buffer () noexcept |
| | Creates a new empty buffer.
|
| |
| | Buffer (std::nullptr_t) noexcept |
| | Creates a new null buffer.
|
| |
| | Buffer (size_t size) noexcept |
| | Creates a new buffer with "size" bytes preallocated.
|
| |
| | Buffer (Byte *buffer, size_t size, bool copy=false) noexcept |
| | Creates a new buffer by referecning another raw buffer.
|
| |
| | Buffer (const Byte *buffer, size_t size) noexcept |
| | Creates a new buffer by copying another raw buffer.
|
| |
| | Buffer (std::initializer_list< unsigned char > bytes) noexcept |
| | Creates a new buffer using a initializer list.
|
| |
| | Buffer (const Buffer &other) noexcept=delete |
| | Creates a new buffer by creating a copy of another.
|
| |
| | Buffer (Buffer &&other) noexcept |
| | Creates a new buffer by moving another.
|
| |
| | Buffer () noexcept |
| | Creates a new empty buffer.
|
| |
| | Buffer (std::nullptr_t) noexcept |
| | Creates a new null buffer.
|
| |
| | Buffer (size_t size) noexcept |
| | Creates a new buffer with "size" bytes preallocated.
|
| |
| | Buffer (Byte *buffer, size_t size, bool copy=false) noexcept |
| | Creates a new buffer by referecning another raw buffer.
|
| |
| | Buffer (const Byte *buffer, size_t size) noexcept |
| | Creates a new buffer by copying another raw buffer.
|
| |
| | Buffer (std::initializer_list< unsigned char > bytes) noexcept |
| | Creates a new buffer using a initializer list.
|
| |
| | Buffer (const Buffer &other) noexcept=delete |
| | Creates a new buffer by creating a copy of another.
|
| |
| Buffer & | operator= (const Buffer &other) noexcept=delete |
| | Assigns this buffer a copy of another.
|
| |
| | Buffer (Buffer &&other) noexcept |
| | Creates a new buffer by moving another.
|
| |
| Buffer & | operator= (Buffer &&other) noexcept |
| | Assigns this buffer another buffer's content by moving it.
|
| |
| | ~Buffer () noexcept |
| | Destroys and releases the buffer content.
|
| |
| Buffer | copy () const noexcept |
| | Creates a explicit buffer copy.
|
| |
| Byte * | data () noexcept |
| | Gets a pointer to the raws buffer data.
|
| |
| const Byte * | data () const noexcept |
| | Gets a pointer to the raws buffer data.
|
| |
| Byte * | buffer () noexcept |
| | Gets a pointer to the raws buffer data.
|
| |
| const Byte * | buffer () const noexcept |
| | Gets a pointer to the raws buffer data.
|
| |
| size_t | size () const noexcept |
| | Gets the number of bytes currently allocated in the buffer.
|
| |
| size_t | capacity () const noexcept |
| | Gets the buffer capacity.
|
| |
| bool | empty () const noexcept |
| | Checks if the buffer is currently empty (i.e.
|
| |
| bool | owns () const noexcept |
| | Checks if the buffer is currently owned.
|
| |
| bool | valid () const noexcept |
| | Checks if the buffer is valid.
|
| |
| Iterator | begin () noexcept |
| | Gets a iterator that points to the begining of the buffer.
|
| |
| Iterator | end () noexcept |
| | Gets a iterator that points to the end of the buffer.
|
| |
| ConstIterator | begin () const noexcept |
| | Gets a iterator that points to the beginning of the buffer.
|
| |
| ConstIterator | end () const noexcept |
| | Gets a iterator that points to the end of the buffer.
|
| |
| ConstIterator | cbegin () const noexcept |
| | Gets a iterator that points to the beginning of the buffer.
|
| |
| ConstIterator | cend () const noexcept |
| | Gets a iterator that points to the end of the buffer.
|
| |
| bool | operator== (const Buffer &other) const noexcept |
| | Compares a buffer for equality If either buffer contain the same address and size, retuns true.
|
| |
| bool | operator!= (const Buffer &other) const noexcept |
| | Compares a buffer for inequality If either buffer contain the same address and size, retuns false.
|
| |
| Byte & | operator[] (size_t offset) noexcept |
| | Accesses a buffer element by its offset.
|
| |
| Byte | operator[] (size_t offset) const noexcept |
| | Accesses a buffer element by its offset.
|
| |
| | operator bool () const noexcept |
| | Checks if the buffer is valid (i.e.
|
| |
| | operator const unsigned char * () const noexcept |
| |
| | operator const char * () const noexcept |
| |
| | operator unsigned char * () noexcept |
| |
| | operator char * () noexcept |
| |
| void | resize (size_t newSize) noexcept |
| | Resizes the buffer to be able to store up-to "newSize" bytes.
|
| |
| void | reserve (size_t newCapacity) noexcept |
| | Reservers at least newCapacity bytes in the buffer.
|
| |
| void | own () noexcept |
| | Transforms a unowned buffer into a owned buffer.
|
| |
| void | append (const Buffer &buffer) noexcept |
| | Appends a buffer to the end of this buffer.
|
| |
| void | write (const char *buf, size_t length) noexcept |
| | Writes buf to the end of the buffer.
|
| |
| auto | reference (size_t start=0, size_t length=std::numeric_limits< size_t >::max()) const noexcept -> Buffer |
| | Creates a buffer reference.
|
| |
| std::string | hexdump () const noexcept |
| | Creates a hexdump representation.
|
| |
| std::string | hexstring () const noexcept |
| | Creates a hexdump representation.
|
| |