MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / Serialize

Function Serialize

src/Nazara/Core/String.cpp:5938–5944  ·  view source on GitHub ↗

! * \brief Serializes a string * \return true if successful * * \param context Context of serialization * \param string String to serialize */

Source from the content-addressed store, hash-verified

5936 * \param string String to serialize
5937 */
5938 bool Serialize(SerializationContext& context, const String& string)
5939 {
5940 if (!Serialize(context, UInt32(string.GetSize())))
5941 return false;
5942
5943 return context.stream->Write(string.GetConstBuffer(), string.GetSize()) == string.GetSize();
5944 }
5945
5946 /*!
5947 * \brief Unserializes a string

Callers 2

EncodeHeaderMethod · 0.85
Serialization.cppFile · 0.85

Calls 3

GetConstBufferMethod · 0.80
GetSizeMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected