C# Класс Files.FileReader

Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool CleanupNativeAndManagedResources ) : void

Описание методов

Close() публичный Метод

Closes this FileReader instance.
public Close ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool CleanupNativeAndManagedResources ) : void
CleanupNativeAndManagedResources bool
Результат void

FileReader() публичный Метод

Creates a new FileReader instance.
public FileReader ( Stream DataStream, bool BigEndian ) : System
DataStream Stream
BigEndian bool Is the data stored as big endian?
Результат System

FileReader() публичный Метод

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?
Результат System

ReadByte() публичный Метод

Reads a byte from the underlying stream.
public ReadByte ( ) : byte
Результат byte

ReadBytes() публичный Метод

Reads a specified number of bytes from the underlying stream.
public ReadBytes ( int Count ) : byte[]
Count int Number of bytes to read.
Результат byte[]

ReadCString() публичный Метод

Reads a null-terminated string from the underlying stream.
public ReadCString ( ) : string
Результат string

ReadFloat() публичный Метод

Reads a float from the underlying stream. Doesn't support endian swapping.
public ReadFloat ( ) : float
Результат float

ReadInt16() публичный Метод

Reads a short from the underlying stream.
public ReadInt16 ( ) : short
Результат short

ReadInt32() публичный Метод

Reads an int from the underlying stream.
public ReadInt32 ( ) : int
Результат int

ReadPaddedCString() публичный Метод

Reads a padded null-terminated string from the underlying stream.
public ReadPaddedCString ( ) : string
Результат string

ReadPascalString() публичный Метод

Reads a pascal string from the underlying stream, where one byte preceeds it denoting the length.
public ReadPascalString ( ) : string
Результат string

ReadString() публичный Метод

Reads a string from the underlying stream.
public ReadString ( ) : string
Результат string

ReadString() публичный Метод

Reads a string with a pre-determined length from the underlying stream.
public ReadString ( int NumChars ) : string
NumChars int Number of characters in string.
Результат string

ReadToEnd() публичный Метод

Reads all the remaining bytes in this stream.
public ReadToEnd ( ) : byte[]
Результат byte[]

ReadUInt32() публичный Метод

Reads a uint from the underlying stream.
public ReadUInt32 ( ) : uint
Результат uint

ReadUInt64() публичный Метод

Reads a ulong from the underlying stream.
public ReadUInt64 ( ) : ulong
Результат ulong

ReadUShort() публичный Метод

Reads a ushort from the underlying stream.
public ReadUShort ( ) : ushort
Результат ushort

Seek() публичный Метод

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.
Результат void