C# Class Files.FileReader

Inheritance: IDisposable
Afficher le fichier Open project: Afr0Games/Project-Dollhouse

Méthodes publiques

Méthode Description
Close ( ) : void

Closes this FileReader instance.

Dispose ( ) : void
FileReader ( Stream DataStream, bool BigEndian ) : System

Creates a new FileReader instance.

FileReader ( string Path, bool BigEndian ) : System

Creates a new FileReader instance.

ReadByte ( ) : byte

Reads a byte from the underlying stream.

ReadBytes ( int Count ) : byte[]

Reads a specified number of bytes from the underlying stream.

ReadCString ( ) : string

Reads a null-terminated string from the underlying stream.

ReadFloat ( ) : float

Reads a float from the underlying stream. Doesn't support endian swapping.

ReadInt16 ( ) : short

Reads a short from the underlying stream.

ReadInt32 ( ) : int

Reads an int from the underlying stream.

ReadPaddedCString ( ) : string

Reads a padded null-terminated string from the underlying stream.

ReadPascalString ( ) : string

Reads a pascal string from the underlying stream, where one byte preceeds it denoting the length.

ReadString ( ) : string

Reads a string from the underlying stream.

ReadString ( int NumChars ) : string

Reads a string with a pre-determined length from the underlying stream.

ReadToEnd ( ) : byte[]

Reads all the remaining bytes in this stream.

ReadUInt32 ( ) : uint

Reads a uint from the underlying stream.

ReadUInt64 ( ) : ulong

Reads a ulong from the underlying stream.

ReadUShort ( ) : ushort

Reads a ushort from the underlying stream.

Seek ( long Offset ) : void

Seeks in the underlying stream, always assuming an origin of the beginning of the stream.

Méthodes protégées

Méthode Description
Dispose ( bool CleanupNativeAndManagedResources ) : void

Method Details

Close() public méthode

Closes this FileReader instance.
public Close ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool CleanupNativeAndManagedResources ) : void
CleanupNativeAndManagedResources bool
Résultat void

FileReader() public méthode

Creates a new FileReader instance.
public FileReader ( Stream DataStream, bool BigEndian ) : System
DataStream Stream
BigEndian bool Is the data stored as big endian?
Résultat System

FileReader() public méthode

Creates a new FileReader instance.
public FileReader ( string Path, bool BigEndian ) : System
Path string The path of the file to read.
BigEndian bool Is the filed stored as big endian?
Résultat System

ReadByte() public méthode

Reads a byte from the underlying stream.
public ReadByte ( ) : byte
Résultat byte

ReadBytes() public méthode

Reads a specified number of bytes from the underlying stream.
public ReadBytes ( int Count ) : byte[]
Count int Number of bytes to read.
Résultat byte[]

ReadCString() public méthode

Reads a null-terminated string from the underlying stream.
public ReadCString ( ) : string
Résultat string

ReadFloat() public méthode

Reads a float from the underlying stream. Doesn't support endian swapping.
public ReadFloat ( ) : float
Résultat float

ReadInt16() public méthode

Reads a short from the underlying stream.
public ReadInt16 ( ) : short
Résultat short

ReadInt32() public méthode

Reads an int from the underlying stream.
public ReadInt32 ( ) : int
Résultat int

ReadPaddedCString() public méthode

Reads a padded null-terminated string from the underlying stream.
public ReadPaddedCString ( ) : string
Résultat string

ReadPascalString() public méthode

Reads a pascal string from the underlying stream, where one byte preceeds it denoting the length.
public ReadPascalString ( ) : string
Résultat string

ReadString() public méthode

Reads a string from the underlying stream.
public ReadString ( ) : string
Résultat string

ReadString() public méthode

Reads a string with a pre-determined length from the underlying stream.
public ReadString ( int NumChars ) : string
NumChars int Number of characters in string.
Résultat string

ReadToEnd() public méthode

Reads all the remaining bytes in this stream.
public ReadToEnd ( ) : byte[]
Résultat byte[]

ReadUInt32() public méthode

Reads a uint from the underlying stream.
public ReadUInt32 ( ) : uint
Résultat uint

ReadUInt64() public méthode

Reads a ulong from the underlying stream.
public ReadUInt64 ( ) : ulong
Résultat ulong

ReadUShort() public méthode

Reads a ushort from the underlying stream.
public ReadUShort ( ) : ushort
Résultat ushort

Seek() public méthode

Seeks in the underlying stream, always assuming an origin of the beginning of the stream.
public Seek ( long Offset ) : void
Offset long The offset to seek to.
Résultat void