3#include "Foundation/Memory/MemoryBuffer.h"
15 char Peek()
const {
return static_cast<const char*
>(mBuffer.data())[mBuffer.pos()]; }
18 char Take() {
return mBuffer.read8(); }
22 size_t Tell() {
return mBuffer.pos(); }
25 char*
PutBegin() { assert(
false);
return nullptr; }
28 void Put(
char c) { mBuffer.write8(c); }
36 size_t PutEnd(
char* begin) {
return mBuffer.pos() -
reinterpret_cast<intptr_t
>(begin); }
char Take()
Read the current character from stream and moving the read cursor to next character.
char * PutBegin()
Not used. See RapidJSON spec.
void Flush()
Flush the buffer.
char Peek() const
Read the current character from stream without moving the read cursor.
size_t PutEnd(char *begin)
void Put(char c)
Write a character.
Contains all Cogs related functionality.