C# 클래스 AlbLib.IFF.IFFReader

Class used when reading files in IFF format.
파일 보기 프로젝트 열기: IllidanS4/AlbLib 1 사용 예제들

공개 메소드들

메소드 설명
IFFReader ( Stream input ) : System

Initializes new instance using stream.

ReadAll ( ) : IEnumerable

Enumerates through all chunks in file.

ReadByte ( ) : byte

Reads one byte.

ReadBytes ( int count ) : byte[]

Reads bytes with specified count.

ReadChunkHeader ( ) : IFFChunk

Reads chunk header.

ReadFileHeader ( ) : IFFFile

Reads file header on beginning of data.

ReadInt16 ( ) : short

Reads one int16. Automatically converted to little endian.

ReadInt32 ( ) : int

Reads one int32. Automatically converted to little endian.

ReadRest ( ) : void

Reads all remaining bytes from chunk.

ReadUInt16 ( ) : ushort

Reads one uint16. Automatically converted to little endian.

ReadUInt32 ( ) : uint

Reads one uint32. Automatically converted to little endian.

ReadUnpack ( int count ) : byte[]

Reads packed bytes with specified count.

ToLittleEndian ( int value ) : int

Converts value in big endian to current endian.

ToLittleEndian ( short value ) : short

Converts value in big endian to current endian.

ToLittleEndian ( uint value ) : uint

Converts value in big endian to current endian.

ToLittleEndian ( ushort value ) : ushort

Converts value in big endian to current endian.

Unpack ( Stream input, int size, int &read ) : byte[]

Reads packed data from stream.

Unpack ( Stream input, Stream output, int size ) : int

Reads packed data from stream.

메소드 상세

IFFReader() 공개 메소드

Initializes new instance using stream.
public IFFReader ( Stream input ) : System
input Stream /// Input stream. ///
리턴 System

ReadAll() 공개 메소드

Enumerates through all chunks in file.
public ReadAll ( ) : IEnumerable
리턴 IEnumerable

ReadByte() 공개 메소드

Reads one byte.
public ReadByte ( ) : byte
리턴 byte

ReadBytes() 공개 메소드

Reads bytes with specified count.
public ReadBytes ( int count ) : byte[]
count int /// Bytes count. ///
리턴 byte[]

ReadChunkHeader() 공개 메소드

Reads chunk header.
public ReadChunkHeader ( ) : IFFChunk
리턴 IFFChunk

ReadFileHeader() 공개 메소드

Reads file header on beginning of data.
public ReadFileHeader ( ) : IFFFile
리턴 IFFFile

ReadInt16() 공개 메소드

Reads one int16. Automatically converted to little endian.
public ReadInt16 ( ) : short
리턴 short

ReadInt32() 공개 메소드

Reads one int32. Automatically converted to little endian.
public ReadInt32 ( ) : int
리턴 int

ReadRest() 공개 메소드

Reads all remaining bytes from chunk.
public ReadRest ( ) : void
리턴 void

ReadUInt16() 공개 메소드

Reads one uint16. Automatically converted to little endian.
public ReadUInt16 ( ) : ushort
리턴 ushort

ReadUInt32() 공개 메소드

Reads one uint32. Automatically converted to little endian.
public ReadUInt32 ( ) : uint
리턴 uint

ReadUnpack() 공개 메소드

Reads packed bytes with specified count.
public ReadUnpack ( int count ) : byte[]
count int /// Bytes count. ///
리턴 byte[]

ToLittleEndian() 공개 정적인 메소드

Converts value in big endian to current endian.
public static ToLittleEndian ( int value ) : int
value int /// Value to convert. ///
리턴 int

ToLittleEndian() 공개 정적인 메소드

Converts value in big endian to current endian.
public static ToLittleEndian ( short value ) : short
value short /// Value to convert. ///
리턴 short

ToLittleEndian() 공개 정적인 메소드

Converts value in big endian to current endian.
public static ToLittleEndian ( uint value ) : uint
value uint /// Value to convert. ///
리턴 uint

ToLittleEndian() 공개 정적인 메소드

Converts value in big endian to current endian.
public static ToLittleEndian ( ushort value ) : ushort
value ushort /// Value to convert. ///
리턴 ushort

Unpack() 공개 정적인 메소드

Reads packed data from stream.
public static Unpack ( Stream input, int size, int &read ) : byte[]
input Stream /// Input stream. ///
size int /// Data size. ///
read int /// Bytes read. ///
리턴 byte[]

Unpack() 공개 정적인 메소드

Reads packed data from stream.
public static Unpack ( Stream input, Stream output, int size ) : int
input Stream /// Input stream. ///
output Stream /// Output stream. ///
size int /// Data size. ///
리턴 int