MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / Begin

Method Begin

deps/LLGL/sources/Renderer/Serialization.cpp:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void Serializer::Begin(IdentType ident, std::size_t preallocatedSize)
32{
33 /* Resize serialization buffer and store offset to begin of new segment */
34 begin_ = data_.size();
35 data_.resize(begin_ + g_segmentHeaderSize + preallocatedSize);
36
37 /* Write identifier number */
38 *reinterpret_cast<IdentType*>(&(data_[begin_])) = ident;
39
40 /* Set write position to begin of data block */
41 pos_ = begin_ + g_segmentHeaderSize;
42}
43
44void Serializer::Write(const void* data, std::size_t size)
45{

Callers 15

DrawMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
MeasureTimeMethod · 0.45
RunMethod · 0.45
mainFunction · 0.45
RunMethod · 0.45
RunMethod · 0.45
OnDrawFrameMethod · 0.45

Calls 3

ToHexFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45

Tested by 8

mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
MeasureTimeMethod · 0.36
RunMethod · 0.36
mainFunction · 0.36