31 #ifndef SERUT_MEMORYSERIALIZER_H 33 #define SERUT_MEMORYSERIALIZER_H 35 #include "serutconfig.h" 53 void *pWriteBuffer,
size_t writeSize);
63 bool readBytes(
void *pBuffer,
size_t amount);
64 bool writeBytes(
const void *pBuffer,
size_t amount);
66 const uint8_t *m_pReadBuffer;
67 uint8_t *m_pWriteBuffer;
68 size_t m_readPosition;
69 size_t m_writePosition;
76 #endif // SERUT_MEMORYSERIALIZER_H size_t getBytesWritten() const
Returns the amount of bytes that have currently been written.
Definition: memoryserializer.h:61
Definition: dummyserializer.h:38
Generic serialization interface.
Definition: serializationinterface.h:57
size_t getBytesRead() const
Returns the amount of bytes that have currently been read.
Definition: memoryserializer.h:58
A serializer for reading from and writing to memory.
Definition: memoryserializer.h:42