U3D
Open-source, cross-platform 2D and 3D game engine built in C++
|
#include </var/dev/u3d/stable/Source/Urho3D/IO/Serializer.h>
Public Member Functions | |
virtual | ~Serializer () |
Destruct. | |
virtual unsigned | Write (const void *data, unsigned size)=0 |
Write bytes to the stream. Return number of bytes actually written. More... | |
bool | WriteInt64 (long long value) |
Write a 64-bit integer. | |
bool | WriteInt (int value) |
Write a 32-bit integer. | |
bool | WriteShort (short value) |
Write a 16-bit integer. | |
bool | WriteByte (signed char value) |
Write an 8-bit integer. | |
bool | WriteUInt64 (unsigned long long value) |
Write a 64-bit unsigned integer. | |
bool | WriteUInt (unsigned value) |
Write a 32-bit unsigned integer. | |
bool | WriteUShort (unsigned short value) |
Write a 16-bit unsigned integer. | |
bool | WriteUByte (unsigned char value) |
Write an 8-bit unsigned integer. | |
bool | WriteBool (bool value) |
Write a bool. | |
bool | WriteFloat (float value) |
Write a float. | |
bool | WriteDouble (double value) |
Write a double. | |
bool | WriteIntRect (const IntRect &value) |
Write an IntRect. | |
bool | WriteIntVector2 (const IntVector2 &value) |
Write an IntVector2. | |
bool | WriteIntVector3 (const IntVector3 &value) |
Write an IntVector3. | |
bool | WriteRect (const Rect &value) |
Write a Rect. | |
bool | WriteVector2 (const Vector2 &value) |
Write a Vector2. | |
bool | WriteVector3 (const Vector3 &value) |
Write a Vector3. | |
bool | WritePackedVector3 (const Vector3 &value, float maxAbsCoord) |
Write a Vector3 packed into 3 x 16 bits with the specified maximum absolute range. | |
bool | WriteVector4 (const Vector4 &value) |
Write a Vector4. | |
bool | WriteQuaternion (const Quaternion &value) |
Write a quaternion. | |
bool | WritePackedQuaternion (const Quaternion &value) |
Write a quaternion with each component packed in 16 bits. | |
bool | WriteMatrix3 (const Matrix3 &value) |
Write a Matrix3. | |
bool | WriteMatrix3x4 (const Matrix3x4 &value) |
Write a Matrix3x4. | |
bool | WriteMatrix4 (const Matrix4 &value) |
Write a Matrix4. | |
bool | WriteColor (const Color &value) |
Write a color. | |
bool | WriteBoundingBox (const BoundingBox &value) |
Write a bounding box. | |
bool | WriteString (const String &value) |
Write a null-terminated string. | |
bool | WriteFileID (const String &value) |
Write a four-letter file ID. If the string is not long enough, spaces will be appended. | |
bool | WriteStringHash (const StringHash &value) |
Write a 32-bit StringHash. | |
bool | WriteBuffer (const PODVector< unsigned char > &value) |
Write a buffer, with size encoded as VLE. | |
bool | WriteResourceRef (const ResourceRef &value) |
Write a resource reference. | |
bool | WriteResourceRefList (const ResourceRefList &value) |
Write a resource reference list. | |
bool | WriteVariant (const Variant &value) |
Write a variant. | |
bool | WriteVariantData (const Variant &value) |
Write a variant without the type information. | |
bool | WriteVariantVector (const VariantVector &value) |
Write a variant vector. | |
bool | WriteStringVector (const StringVector &value) |
Write a variant vector. | |
bool | WriteVariantMap (const VariantMap &value) |
Write a variant map. | |
bool | WriteVLE (unsigned value) |
Write a variable-length encoded unsigned integer, which can use 29 bits maximum. | |
bool | WriteNetID (unsigned value) |
Write a 24-bit network object ID. | |
bool | WriteLine (const String &value) |
Write a text line. Char codes 13 & 10 will be automatically appended. | |
Abstract stream for writing. @nocount
|
pure virtual |
Write bytes to the stream. Return number of bytes actually written.
Implemented in Urho3D::File, Urho3D::MemoryBuffer, Urho3D::NamedPipe, and Urho3D::VectorBuffer.