U3D
Open-source, cross-platform 2D and 3D game engine built in C++
Loading...
Searching...
No Matches
Urho3D::Deserializer Class Referenceabstract

#include </var/dev/u3d/stable/Source/Urho3D/IO/Deserializer.h>

Inheritance diagram for Urho3D::Deserializer:
[legend]

Public Member Functions

 Deserializer ()
 Construct with zero size.
 
 Deserializer (unsigned size)
 Construct with defined size.
 
virtual ~Deserializer ()
 Destruct.
 
virtual unsigned Read (void *dest, unsigned size)=0
 Read bytes from the stream. Return number of bytes actually read. More...
 
virtual unsigned Seek (unsigned position)=0
 Set position from the beginning of the stream. Return actual new position. More...
 
virtual const StringGetName () const
 
virtual unsigned GetChecksum ()
 
virtual bool IsEof () const
 
unsigned SeekRelative (int delta)
 Set position relative to current position. Return actual new position.
 
unsigned GetPosition () const
 
unsigned Tell () const
 Return current position.
 
unsigned GetSize () const
 
long long ReadInt64 ()
 Read a 64-bit integer.
 
int ReadInt ()
 Read a 32-bit integer.
 
short ReadShort ()
 Read a 16-bit integer.
 
signed char ReadByte ()
 Read an 8-bit integer.
 
unsigned long long ReadUInt64 ()
 Read a 64-bit unsigned integer.
 
unsigned ReadUInt ()
 Read a 32-bit unsigned integer.
 
unsigned short ReadUShort ()
 Read a 16-bit unsigned integer.
 
unsigned char ReadUByte ()
 Read an 8-bit unsigned integer.
 
bool ReadBool ()
 Read a bool.
 
float ReadFloat ()
 Read a float.
 
double ReadDouble ()
 Read a double.
 
IntRect ReadIntRect ()
 Read an IntRect.
 
IntVector2 ReadIntVector2 ()
 Read an IntVector2.
 
IntVector3 ReadIntVector3 ()
 Read an IntVector3.
 
Rect ReadRect ()
 Read a Rect.
 
Vector2 ReadVector2 ()
 Read a Vector2.
 
Vector3 ReadVector3 ()
 Read a Vector3.
 
Vector3 ReadPackedVector3 (float maxAbsCoord)
 Read a Vector3 packed into 3 x 16 bits with the specified maximum absolute range.
 
Vector4 ReadVector4 ()
 Read a Vector4.
 
Quaternion ReadQuaternion ()
 Read a quaternion.
 
Quaternion ReadPackedQuaternion ()
 Read a quaternion with each component packed in 16 bits.
 
Matrix3 ReadMatrix3 ()
 Read a Matrix3.
 
Matrix3x4 ReadMatrix3x4 ()
 Read a Matrix3x4.
 
Matrix4 ReadMatrix4 ()
 Read a Matrix4.
 
Color ReadColor ()
 Read a color.
 
BoundingBox ReadBoundingBox ()
 Read a bounding box.
 
String ReadString ()
 Read a null-terminated string.
 
String ReadFileID ()
 Read a four-letter file ID.
 
StringHash ReadStringHash ()
 Read a 32-bit StringHash.
 
PODVector< unsigned char > ReadBuffer ()
 Read a buffer with size encoded as VLE.
 
ResourceRef ReadResourceRef ()
 Read a resource reference.
 
ResourceRefList ReadResourceRefList ()
 Read a resource reference list.
 
Variant ReadVariant ()
 Read a variant.
 
Variant ReadVariant (VariantType type)
 Read a variant whose type is already known.
 
VariantVector ReadVariantVector ()
 Read a variant vector.
 
StringVector ReadStringVector ()
 Read a string vector.
 
VariantMap ReadVariantMap ()
 Read a variant map.
 
unsigned ReadVLE ()
 Read a variable-length encoded unsigned integer, which can use 29 bits maximum.
 
unsigned ReadNetID ()
 Read a 24-bit network object ID.
 
String ReadLine ()
 Read a text line.
 

Protected Attributes

unsigned position_
 Stream position.
 
unsigned size_
 Stream size.
 

Detailed Description

Abstract stream for reading. @nocount

Member Function Documentation

◆ GetChecksum()

unsigned Urho3D::Deserializer::GetChecksum ( )
virtual

Return a checksum if applicable.

Reimplemented in Urho3D::File.

Here is the caller graph for this function:

◆ GetName()

const String & Urho3D::Deserializer::GetName ( ) const
virtual

Return name of the stream.

Reimplemented in Urho3D::AbstractFile.

Here is the caller graph for this function:

◆ GetPosition()

unsigned Urho3D::Deserializer::GetPosition ( ) const
inline

Return current position.

Here is the caller graph for this function:

◆ GetSize()

unsigned Urho3D::Deserializer::GetSize ( ) const
inline

Return size.

◆ IsEof()

virtual bool Urho3D::Deserializer::IsEof ( ) const
inlinevirtual

Return whether the end of stream has been reached.

Reimplemented in Urho3D::NamedPipe, and Urho3D::HttpRequest.

Here is the caller graph for this function:

◆ Read()

virtual unsigned Urho3D::Deserializer::Read ( void *  dest,
unsigned  size 
)
pure virtual

Read bytes from the stream. Return number of bytes actually read.

Implemented in Urho3D::File, Urho3D::MemoryBuffer, Urho3D::NamedPipe, Urho3D::VectorBuffer, and Urho3D::HttpRequest.

◆ Seek()

virtual unsigned Urho3D::Deserializer::Seek ( unsigned  position)
pure virtual

Set position from the beginning of the stream. Return actual new position.

Implemented in Urho3D::File, Urho3D::MemoryBuffer, Urho3D::NamedPipe, Urho3D::VectorBuffer, and Urho3D::HttpRequest.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: