C# 클래스 Files.FileReader

상속: IDisposable
파일 보기 프로젝트 열기: Afr0Games/Project-Dollhouse

공개 메소드들

메소드 설명
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