|
AGX Dynamics 2.38.0.2
|
Utility class for parsing/writing a byte stream. More...
#include <ByteStream.h>
Public Member Functions | |
| ByteStream () | |
| ByteStream (BytePtr begin, BytePtr end) | |
| ByteStream (BytePtr begin, BytePtr end, BytePtr head) | |
| BytePtr & | begin () |
| const BytePtr & | begin () const |
| template<typename T > | |
| void | consume (const T &value) |
| Consume an expected value from the stream. | |
| BytePtr & | end () |
| const BytePtr & | end () const |
| size_t | getCurrentOffset () const |
| BytePtr & | head () |
| const BytePtr & | head () const |
| ByteStream | operator+ (size_t offset) const |
| ByteStream & | operator+= (size_t offset) |
| BytePtr | popBytes (size_t numBytes) |
| template<typename T > | |
| T | popElement () |
| void | read (Byte *buffer, size_t numBytes) |
| Read a buffer. | |
| void | read (char *buffer, size_t numBytes) |
| size_t | size () const |
| template<typename T > | |
| T | topElement () const |
| void | write (const Byte *buffer, size_t numBytes) |
| Write a buffer. | |
| void | write (const char *buffer, size_t numBytes) |
| template<typename T > | |
| void | write (const T &value) |
| Write a value to the head of the stream and advance the head. | |
Utility class for parsing/writing a byte stream.
Definition at line 27 of file ByteStream.h.
| agxData::ByteStream::ByteStream | ( | ) |
Definition at line 117 of file ByteStream.h.
Referenced by operator+().
Definition at line 121 of file ByteStream.h.
| BytePtr & agxData::ByteStream::begin | ( | ) |
Definition at line 131 of file ByteStream.h.
Referenced by ByteStream().
Definition at line 132 of file ByteStream.h.
Consume an expected value from the stream.
Definition at line 162 of file ByteStream.h.
References agxVerify.
| BytePtr & agxData::ByteStream::end | ( | ) |
Definition at line 134 of file ByteStream.h.
Referenced by ByteStream().
Definition at line 135 of file ByteStream.h.
| size_t agxData::ByteStream::getCurrentOffset | ( | ) | const |
Definition at line 141 of file ByteStream.h.
| BytePtr & agxData::ByteStream::head | ( | ) |
Definition at line 137 of file ByteStream.h.
Referenced by ByteStream().
Definition at line 138 of file ByteStream.h.
| ByteStream agxData::ByteStream::operator+ | ( | size_t | offset | ) | const |
Definition at line 211 of file ByteStream.h.
References ByteStream().
| ByteStream & agxData::ByteStream::operator+= | ( | size_t | offset | ) |
Definition at line 212 of file ByteStream.h.
Definition at line 176 of file ByteStream.h.
References agxVerify.
| T agxData::ByteStream::popElement | ( | ) |
Definition at line 153 of file ByteStream.h.
Read a buffer.
Definition at line 197 of file ByteStream.h.
References agxVerify.
Referenced by read().
Definition at line 204 of file ByteStream.h.
References read().
| size_t agxData::ByteStream::size | ( | ) | const |
Definition at line 140 of file ByteStream.h.
|
inline |
Definition at line 192 of file ByteStream.h.
References write().
Write a value to the head of the stream and advance the head.
Definition at line 169 of file ByteStream.h.
References agxVerify.
Referenced by write().