BinaryReader Class

Reads binary data from a ByteStream . The data is expected to be in big-endian byte order.

Definition

Line 10 of System.Base/BinaryReader.cm

Constructors & Destructor

public nothrow BinaryReader(const SharedPtr<ByteStream>& stream_)

Member Functions

public nothrow const SharedPtr<ByteStream>& ContainedStream()
public void Read(byte* buffer, int size)
public bool ReadBool()
public byte ReadByte()
public int ReadByteOrEnd()
public char ReadChar()
public double ReadDouble()
public float ReadFloat()
public int ReadInt()
public long ReadLong()
public sbyte ReadSByte()
public int ReadSLEB128Int()
public long ReadSLEB128Long()
public short ReadShort()
public String<char> ReadString()
public uchar ReadUChar()
public uint ReadUInt()
public uint ReadULEB128UInt()
public ulong ReadULEB128ULong()
public ulong ReadULong()
public ushort ReadUShort()
public String<uchar> ReadUString()
public Uuid ReadUuid()
public wchar ReadWChar()
public String<wchar> ReadWString()
public void Seek(long pos, Origin origin)
public long Size()
public long Tell()

Member Variables

private SharedPtr<ByteStream> stream

Constructor& Destructor Details

BinaryReader Constructor

public nothrow BinaryReader(const SharedPtr<ByteStream>& stream_)

Definition
Line 12 of System.Base/BinaryReader.cm


Member Function Details

ContainedStream Member Function

public nothrow const SharedPtr<ByteStream>& ContainedStream()

Definition
Line 225 of System.Base/BinaryReader.cm


Read Member Function

public void Read(byte* buffer, int size)

Definition
Line 202 of System.Base/BinaryReader.cm


ReadBool Member Function

public bool ReadBool()

Definition
Line 15 of System.Base/BinaryReader.cm


ReadByte Member Function

public byte ReadByte()

Definition
Line 44 of System.Base/BinaryReader.cm


ReadByteOrEnd Member Function

public int ReadByteOrEnd()

Definition
Line 40 of System.Base/BinaryReader.cm


ReadChar Member Function

public char ReadChar()

Definition
Line 20 of System.Base/BinaryReader.cm


ReadDouble Member Function

public double ReadDouble()

Definition
Line 104 of System.Base/BinaryReader.cm


ReadFloat Member Function

public float ReadFloat()

Definition
Line 98 of System.Base/BinaryReader.cm


ReadInt Member Function

public int ReadInt()

Definition
Line 65 of System.Base/BinaryReader.cm


ReadLong Member Function

public long ReadLong()

Definition
Line 79 of System.Base/BinaryReader.cm


ReadSByte Member Function

public sbyte ReadSByte()

Definition
Line 35 of System.Base/BinaryReader.cm


ReadSLEB128Int Member Function

public int ReadSLEB128Int()

Definition
Line 157 of System.Base/BinaryReader.cm


ReadSLEB128Long Member Function

public long ReadSLEB128Long()

Definition
Line 175 of System.Base/BinaryReader.cm


ReadShort Member Function

public short ReadShort()

Definition
Line 53 of System.Base/BinaryReader.cm


ReadString Member Function

public String<char> ReadString()

Definition
Line 110 of System.Base/BinaryReader.cm


ReadUChar Member Function

public uchar ReadUChar()

Definition
Line 30 of System.Base/BinaryReader.cm


ReadUInt Member Function

public uint ReadUInt()

Definition
Line 70 of System.Base/BinaryReader.cm


ReadULEB128UInt Member Function

public uint ReadULEB128UInt()

Definition
Line 131 of System.Base/BinaryReader.cm


ReadULEB128ULong Member Function

public ulong ReadULEB128ULong()

Definition
Line 144 of System.Base/BinaryReader.cm


ReadULong Member Function

public ulong ReadULong()

Definition
Line 84 of System.Base/BinaryReader.cm


ReadUShort Member Function

public ushort ReadUShort()

Definition
Line 58 of System.Base/BinaryReader.cm


ReadUString Member Function

public String<uchar> ReadUString()

Definition
Line 126 of System.Base/BinaryReader.cm


ReadUuid Member Function

public Uuid ReadUuid()

Definition
Line 193 of System.Base/BinaryReader.cm


ReadWChar Member Function

public wchar ReadWChar()

Definition
Line 25 of System.Base/BinaryReader.cm


ReadWString Member Function

public String<wchar> ReadWString()

Definition
Line 121 of System.Base/BinaryReader.cm


Seek Member Function

public void Seek(long pos, Origin origin)

Definition
Line 209 of System.Base/BinaryReader.cm


Size Member Function

public long Size()

Definition
Line 217 of System.Base/BinaryReader.cm


Tell Member Function

public long Tell()

Definition
Line 213 of System.Base/BinaryReader.cm