C# Class Ypsilon.Core.IO.BinaryFileReader

ファイルを表示 Open project: ZaneDubya/YCPU

Public Methods

Method Description
BinaryFileReader ( BinaryReader br ) : System
BinaryFileReader ( MemoryStream stream ) : System
BinaryFileReader ( string path ) : System
Close ( ) : void
End ( ) : bool
Read7BitEncodedInt ( ) : int
ReadBool ( ) : bool
ReadByte ( ) : byte
ReadBytes ( int count ) : byte[]
ReadChar ( ) : char
ReadCharUTF8 ( ) : char

WARNING: INCOMPLETE, ONLY READS 2-byte UTF8 chars.

ReadDateTime ( ) : System.DateTime
ReadDecimal ( ) : decimal
ReadDeltaTime ( ) : System.DateTime
ReadDouble ( ) : double
ReadEncodedInt ( ) : int
ReadFloat ( ) : float
ReadIPAddress ( ) : IPAddress
ReadInt ( ) : int
ReadInts ( int count ) : int[]
ReadLine ( ) : string
ReadLong ( ) : long
ReadSByte ( ) : sbyte
ReadShort ( ) : short
ReadString ( ) : string
ReadStringKnownLength ( int length ) : string
ReadStringNullTerminated ( ) : string
ReadTimeSpan ( ) : System.TimeSpan
ReadUInt ( ) : uint
ReadUInt_BigEndian ( ) : uint
ReadUInts ( int count ) : uint[]
ReadULong ( ) : ulong
ReadUShort ( ) : ushort
ReadUShort_BigEndian ( ) : ushort
ReadUShorts ( int count ) : ushort[]
Seek ( long offset, SeekOrigin origin ) : long

Method Details

BinaryFileReader() public method

public BinaryFileReader ( BinaryReader br ) : System
br System.IO.BinaryReader
return System

BinaryFileReader() public method

public BinaryFileReader ( MemoryStream stream ) : System
stream System.IO.MemoryStream
return System

BinaryFileReader() public method

public BinaryFileReader ( string path ) : System
path string
return System

Close() public method

public Close ( ) : void
return void

End() public method

public End ( ) : bool
return bool

Read7BitEncodedInt() public method

public Read7BitEncodedInt ( ) : int
return int

ReadBool() public method

public ReadBool ( ) : bool
return bool

ReadByte() public method

public ReadByte ( ) : byte
return byte

ReadBytes() public method

public ReadBytes ( int count ) : byte[]
count int
return byte[]

ReadChar() public method

public ReadChar ( ) : char
return char

ReadCharUTF8() public method

WARNING: INCOMPLETE, ONLY READS 2-byte UTF8 chars.
public ReadCharUTF8 ( ) : char
return char

ReadDateTime() public method

public ReadDateTime ( ) : System.DateTime
return System.DateTime

ReadDecimal() public method

public ReadDecimal ( ) : decimal
return decimal

ReadDeltaTime() public method

public ReadDeltaTime ( ) : System.DateTime
return System.DateTime

ReadDouble() public method

public ReadDouble ( ) : double
return double

ReadEncodedInt() public method

public ReadEncodedInt ( ) : int
return int

ReadFloat() public method

public ReadFloat ( ) : float
return float

ReadIPAddress() public method

public ReadIPAddress ( ) : IPAddress
return System.Net.IPAddress

ReadInt() public method

public ReadInt ( ) : int
return int

ReadInts() public method

public ReadInts ( int count ) : int[]
count int
return int[]

ReadLine() public method

public ReadLine ( ) : string
return string

ReadLong() public method

public ReadLong ( ) : long
return long

ReadSByte() public method

public ReadSByte ( ) : sbyte
return sbyte

ReadShort() public method

public ReadShort ( ) : short
return short

ReadString() public method

public ReadString ( ) : string
return string

ReadStringKnownLength() public method

public ReadStringKnownLength ( int length ) : string
length int
return string

ReadStringNullTerminated() public method

public ReadStringNullTerminated ( ) : string
return string

ReadTimeSpan() public method

public ReadTimeSpan ( ) : System.TimeSpan
return System.TimeSpan

ReadUInt() public method

public ReadUInt ( ) : uint
return uint

ReadUInt_BigEndian() public method

public ReadUInt_BigEndian ( ) : uint
return uint

ReadUInts() public method

public ReadUInts ( int count ) : uint[]
count int
return uint[]

ReadULong() public method

public ReadULong ( ) : ulong
return ulong

ReadUShort() public method

public ReadUShort ( ) : ushort
return ushort

ReadUShort_BigEndian() public method

public ReadUShort_BigEndian ( ) : ushort
return ushort

ReadUShorts() public method

public ReadUShorts ( int count ) : ushort[]
count int
return ushort[]

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long