|
| | ByteArray (size_type n) |
| | Constructs a ByteArray object with a reserved size. More...
|
| |
| | ByteArray (const void *buffer, size_type n) |
| | Constructs a ByteArray object with a raw memory and a size. More...
|
| |
| | ByteArray (size_type n, value_type value) |
| | Constructs a ByteArray object with n times the same value. More...
|
| |
| template<class InputIterator > |
| | ByteArray (InputIterator first, InputIterator last) |
| | Constructs a ByteArray object from two iterators. More...
|
| |
|
| ByteArray (const ByteArray &other)=default |
| |
|
| ByteArray (ByteArray &&other)=default |
| |
| iterator | Append (const void *buffer, size_type size) |
| | Appends the content of raw memory. More...
|
| |
| iterator | Append (const ByteArray &other) |
| | Appends another array of bytes. More...
|
| |
| template<class InputIterator > |
| void | Assign (InputIterator first, InputIterator last) |
| | Assigns this with the content between two iterators. More...
|
| |
| void | Assign (size_type n, value_type value) |
| | Assigns this with n times the same value. More...
|
| |
| reference | Back () |
| | Gets last element. More...
|
| |
| const_reference | Back () const |
| | Gets last element. More...
|
| |
| void | Clear (bool keepBuffer=false) |
| | Clears the content of the string. More...
|
| |
| iterator | Erase (const_iterator pos) |
| | Erases an element from the byte array. More...
|
| |
| iterator | Erase (const_iterator first, const_iterator last) |
| | Erases the elements between the two pointers from the byte array. More...
|
| |
| reference | Front () |
| | Gets first element. More...
|
| |
| const_reference | Front () const |
| | Gets first element. More...
|
| |
| allocator_type | GetAllocator () const |
| | Gets the internal allocator of the byte array. More...
|
| |
| pointer | GetBuffer () |
| | Gets the raw buffer. More...
|
| |
| size_type | GetCapacity () const noexcept |
| | Gets the capacity of the byte array. More...
|
| |
| const_pointer | GetConstBuffer () const |
| | Gets the raw buffer. More...
|
| |
| size_type | GetMaxSize () const noexcept |
| | Gets the maximal size supported by the byte array. More...
|
| |
| size_type | GetSize () const noexcept |
| | Gets the size of the byte array. More...
|
| |
| ByteArray | GetSubArray (const_iterator startPos, const_iterator endPos) const |
| | Returns a sub byte array of the byte array. More...
|
| |
| iterator | Insert (const_iterator pos, const void *buffer, size_type n) |
| | Inserts the content of raw memory at the iterator position. More...
|
| |
| iterator | Insert (const_iterator pos, const ByteArray &other) |
| | Inserts the content of another byte array at the iterator position. More...
|
| |
| iterator | Insert (const_iterator pos, size_type n, value_type byte) |
| | Inserts n times the same byte at the iterator position. More...
|
| |
| template<class InputIterator > |
| iterator | Insert (const_iterator pos, InputIterator first, InputIterator last) |
| | Inserts the content from two iterators at the iterator position. More...
|
| |
| bool | IsEmpty () const noexcept |
| | Checks whether the byte array is empty. More...
|
| |
| void | PopBack () |
| | Erases the last element. More...
|
| |
| void | PopFront () |
| | Erases the first element. More...
|
| |
| iterator | Prepend (const void *buffer, size_type size) |
| | Prepends the content of raw memory. More...
|
| |
| iterator | Prepend (const ByteArray &other) |
| | Prepends another array of bytes. More...
|
| |
| void | PushBack (value_type byte) |
| | Pushes the byte at the end. More...
|
| |
| void | PushFront (value_type byte) |
| | Pushes the byte at the beginning. More...
|
| |
| void | Reserve (size_type bufferSize) |
| | Reserves enough memory for the buffer size. More...
|
| |
| void | Resize (size_type newSize) |
| | Resizes the string. More...
|
| |
| void | Resize (size_type newSize, value_type byte) |
| | Resizes the string. More...
|
| |
|
void | ShrinkToFit () |
| | Releases the excedent memory.
|
| |
| void | Swap (ByteArray &other) |
| | Swaps the content with the other byte array. More...
|
| |
| String | ToHex () const |
| | Gives a string representation in base 16. More...
|
| |
| String | ToString () const |
| | Gives a string representation. More...
|
| |
| iterator | begin () noexcept |
| | Returns an iterator pointing to the beggining of the string. More...
|
| |
| const_iterator | begin () const noexcept |
| | Returns an iterator pointing to the beggining of the string. More...
|
| |
| bool | empty () const noexcept |
| | Checks whether the byte array is empty. More...
|
| |
| iterator | end () noexcept |
| | Returns an iterator pointing to the end of the string. More...
|
| |
| const_iterator | end () const noexcept |
| | Returns an iterator pointing to the end of the string. More...
|
| |
| reverse_iterator | rbegin () noexcept |
| | Returns a reversed iterator pointing to the beggining of the string. More...
|
| |
| const_reverse_iterator | rbegin () const noexcept |
| | Returns a reversed iterator pointing to the beggining of the string. More...
|
| |
| reverse_iterator | rend () noexcept |
| | Returns a reversed iterator pointing to the end of the string. More...
|
| |
|
const_reverse_iterator | rend () const noexcept |
| |
| const_iterator | cbegin () const noexcept |
| | Returns a constant iterator pointing to the beggining of the string. More...
|
| |
| const_iterator | cend () const noexcept |
| | Returns a constant iterator pointing to the end of the string. More...
|
| |
| const_reverse_iterator | crbegin () const noexcept |
| | Returns a constant reversed iterator pointing to the beggining of the string. More...
|
| |
| const_reverse_iterator | crend () const noexcept |
| | Returns a constant reversed iterator pointing to the end of the string. More...
|
| |
| size_type | size () const noexcept |
| | Gets the size of the byte array. More...
|
| |
| reference | operator[] (size_type pos) |
| | Gets the ith byte. More...
|
| |
| const_reference | operator[] (size_type pos) const |
| | Gets the ith byte. More...
|
| |
|
ByteArray & | operator= (const ByteArray &array)=default |
| |
|
ByteArray & | operator= (ByteArray &&array)=default |
| |
| ByteArray | operator+ (const ByteArray &array) const |
| | Concatenates the byte array to another. More...
|
| |
| ByteArray & | operator+= (const ByteArray &array) |
| | Concatenates the byte array to this byte array. More...
|
| |
| bool | operator== (const ByteArray &rhs) const |
| | Checks whether the first byte array is equal to the second byte array. More...
|
| |
| bool | operator!= (const ByteArray &rhs) const |
| | Checks whether the first byte array is equal to the second byte array. More...
|
| |
| bool | operator< (const ByteArray &rhs) const |
| | Checks whether the first byte array is less than the second byte array. More...
|
| |
| bool | operator<= (const ByteArray &rhs) const |
| | Checks whether the first byte array is less or equal than the second byte array. More...
|
| |
| bool | operator> (const ByteArray &rhs) const |
| | Checks whether the first byte array is greater than the second byte array. More...
|
| |
| bool | operator>= (const ByteArray &rhs) const |
| | Checks whether the first byte array is greater or equal than the second byte array. More...
|
| |
Core class that represents an array of bytes.