serializeable byte buffer with efficient serialization. More...
#include <ByteBuffer.h>
Public Member Functions | |
| AZStd::size_t | GetSize () const |
| bool | Resize (AZStd::size_t newSize) |
| const uint8_t * | GetBuffer () const |
| uint8_t * | GetBuffer () |
| const uint8_t * | GetBufferEnd () const |
| uint8_t * | GetBufferEnd () |
| bool | CopyValues (const uint8_t *buffer, AZStd::size_t bufferSize) |
| bool | IsSame (const uint8_t *buffer, AZStd::size_t bufferSize) const |
| bool | operator== (const ByteBuffer &rhs) const |
| bool | operator!= (const ByteBuffer &rhs) const |
| bool | Serialize (ISerializer &serializer) |
Static Public Member Functions | |
| static constexpr AZStd::size_t | GetCapacity () |
serializeable byte buffer with efficient serialization.
|
inline |
Overwrites the data in this ByteBuffer with the data in the provided buffer.
| buffer | pointer to the buffer data to copy |
| bufferSize | the number of bytes in the buffer to copy |
|
inline |
Non-const raw buffer access.
|
inline |
Const raw buffer access.
|
inline |
Raw end-of-buffer access.
|
inline |
Const raw end-of-buffer access.
|
inlinestaticconstexpr |
Returns the maximum number of elements this vector can reserve for use.
|
inline |
Returns the number of elements reserved for usage in this vector.
| bool AzNetworking::ByteBuffer< SIZE >::IsSame | ( | const uint8_t * | buffer, |
| AZStd::size_t | bufferSize | ||
| ) | const |
Tests for equality to a raw byte buffer.
| buffer | pointer to the buffer data to copy |
| bufferSize | the number of bytes in the buffer to copy |
|
inline |
Inequality operator.
| rhs | the byte buffer to compare against |
|
inline |
Equality operator.
| rhs | the byte buffer to compare against |
|
inline |
Resizes the vector to the requested number of elements, does not initialize new elements.
| newSize | the number of elements to size the vector to |
|
inline |
Base serialize method for all serializable structures or classes to implement.
| serializer | ISerializer instance to use for serialization |