RageLib.Data.DataReader - indilo53/gta-toolkit GitHub Wiki

Represents a data reader.

namespace: RageLib.Data

Inheritance Hierarchy

Syntax

public class DataReader

Constructors

:white_large_square: prototype description
method DataReader (Stream stream, Endianess endianess=Endianess.LittleEndian) Initializes a new data reader for the specified stream.

Properties

:white_large_square: name description
property Endianess Gets or sets the endianess of the underlying stream.
property Length Gets the length of the underlying stream.
property Position Gets or sets the position within the underlying stream.

Methods

:white_large_square: prototype description
method byte ReadByte() Reads a byte.
method [] ReadBytes(int count) Reads a sequence of bytes.
method double ReadDouble() Reads a double precision floating point value.
method short ReadInt16() Reads a signed 16-bit value.
method int ReadInt32() Reads a signed 32-bit value.
method long ReadInt64() Reads a signed 64-bit value.
method float ReadSingle() Reads a single precision floating point value.
method string ReadString() Reads a string.
method ushort ReadUInt16() Reads an unsigned 16-bit value.
method uint ReadUInt32() Reads an unsigned 32-bit value.
method ulong ReadUInt64() Reads an unsigned 64-bit value.

Events

:white_large_square: name description