18#ifndef INCLUDED_STDSERIALIZER
19#define INCLUDED_STDSERIALIZER
25#define DEBUG_SERIALIZER_ANNOTATE 0
38 void Put(
const char* name,
const u8* data,
size_t len)
40#if DEBUG_SERIALIZER_ANNOTATE
47 m_Stream.write((
const char*)data, (std::streamsize)len);
Serialize to a binary stream.
Definition: BinarySerializer.h:109
Definition: StdSerializer.h:28
std::ostream & m_Stream
Definition: StdSerializer.h:56
void Put(const char *name, const u8 *data, size_t len)
Definition: StdSerializer.h:38
~CStdSerializerImpl()
Definition: StdSerializer.h:33
NONCOPYABLE(CStdSerializerImpl)
CStdSerializerImpl(std::ostream &stream)
Definition: StdSerializer.cpp:22
std::ostream & GetStream()
Definition: StdSerializer.h:50
Definition: StdSerializer.h:60
virtual std::ostream & GetStream()
Returns a stream which can be used to serialize data directly.
Definition: StdSerializer.cpp:32
CStdSerializer(const ScriptInterface &scriptInterface, std::ostream &stream)
Definition: StdSerializer.cpp:27
Abstraction around a SpiderMonkey JS::Realm.
Definition: ScriptInterface.h:72
#define UNUSED2(param)
mark a function local variable or parameter as unused and avoid the corresponding compiler warning.
Definition: code_annotation.h:58
uint8_t u8
Definition: types.h:37