C# 클래스 SwfDotNet.IO.Utils.BufferedBinaryReader

BufferedBinaryReader. This class extends a binaryReader to provide the way to read bit per bit a binary stream. This class use a buffer to do it. ATTENTION: By default, this class works with the LittleEndian mode (for x86).
상속: System.IO.BinaryReader
파일 보기 프로젝트 열기: bladecoding/SwfExport 1 사용 예제들

공개 메소드들

메소드 설명
BufferedBinaryReader ( Stream stream ) : System

Creates a new BufferedBinaryReader instance.

BufferedBinaryReader ( Stream stream, bool useLittleEndian ) : System

Creates a new BufferedBinaryReader instance.

PeekByte ( ) : byte

Peeks the byte.

PeekBytes ( uint numToPeek ) : byte[]

Peeks the bytes.

PeekUInt16 ( ) : ushort

Peeks an Unsigned int16.

PeekUInt32 ( ) : uint

Peeks an Unsigned int32.

ReadBoolean ( ) : bool

Reads the bool.

ReadByte ( ) : byte

Reads the byte.

ReadChar ( ) : char

Reads the char.

ReadFloat ( ) : float

Reads the float.

ReadFloat ( uint numBits ) : float

Reads the float.

ReadFloat ( uint numBits, int fractionSize ) : float

Reads the float.

ReadFloatWord ( uint mantissaSize, uint fractionSize ) : float

Reads the float word.

ReadInt16 ( ) : short

Reads the int16.

ReadInt32 ( ) : int

Reads the int32.

ReadInt64 ( ) : long

Reads the int64.

ReadSBits ( uint bits ) : int

Reads Signed bits.

ReadString ( ) : string

Reads the string.

ReadString ( uint numChars ) : string

Reads the string.

ReadUBits ( uint bits ) : uint

Reads Unsigned bits.

ReadUInt16 ( ) : ushort

Reads an Unsigned int16.

ReadUInt32 ( ) : uint

Reads an Unsigned int32.

ReadUInt64 ( ) : ulong

Reads an Unsigned int64.

Seek ( uint position ) : void

Seeks the specified position.

Skip ( uint bytes ) : void

Skips the specified bytes.

SynchBits ( ) : void

Synchronizes the bits.

비공개 메소드들

메소드 설명
ReadInternal ( byte data, int size ) : void

Reads the given number of bytes from the stream, throwing an exception if they can't all be read.

메소드 상세

BufferedBinaryReader() 공개 메소드

Creates a new BufferedBinaryReader instance.
public BufferedBinaryReader ( Stream stream ) : System
stream Stream Stream.
리턴 System

BufferedBinaryReader() 공개 메소드

Creates a new BufferedBinaryReader instance.
public BufferedBinaryReader ( Stream stream, bool useLittleEndian ) : System
stream Stream Stream.
useLittleEndian bool Use little endian.
리턴 System

PeekByte() 공개 메소드

Peeks the byte.
public PeekByte ( ) : byte
리턴 byte

PeekBytes() 공개 메소드

Peeks the bytes.
public PeekBytes ( uint numToPeek ) : byte[]
numToPeek uint Num to peek.
리턴 byte[]

PeekUInt16() 공개 메소드

Peeks an Unsigned int16.
public PeekUInt16 ( ) : ushort
리턴 ushort

PeekUInt32() 공개 메소드

Peeks an Unsigned int32.
public PeekUInt32 ( ) : uint
리턴 uint

ReadBoolean() 공개 메소드

Reads the bool.
public ReadBoolean ( ) : bool
리턴 bool

ReadByte() 공개 메소드

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

ReadChar() 공개 메소드

Reads the char.
public ReadChar ( ) : char
리턴 char

ReadFloat() 공개 메소드

Reads the float.
public ReadFloat ( ) : float
리턴 float

ReadFloat() 공개 메소드

Reads the float.
public ReadFloat ( uint numBits ) : float
numBits uint Bits number.
리턴 float

ReadFloat() 공개 메소드

Reads the float.
public ReadFloat ( uint numBits, int fractionSize ) : float
numBits uint Num bits.
fractionSize int Size of the fraction.
리턴 float

ReadFloatWord() 공개 메소드

Reads the float word.
public ReadFloatWord ( uint mantissaSize, uint fractionSize ) : float
mantissaSize uint Size of the mantissa.
fractionSize uint Size of the fraction.
리턴 float

ReadInt16() 공개 메소드

Reads the int16.
public ReadInt16 ( ) : short
리턴 short

ReadInt32() 공개 메소드

Reads the int32.
public ReadInt32 ( ) : int
리턴 int

ReadInt64() 공개 메소드

Reads the int64.
public ReadInt64 ( ) : long
리턴 long

ReadSBits() 공개 메소드

Reads Signed bits.
public ReadSBits ( uint bits ) : int
bits uint Bits.
리턴 int

ReadString() 공개 메소드

Reads the string.
public ReadString ( ) : string
리턴 string

ReadString() 공개 메소드

Reads the string.
public ReadString ( uint numChars ) : string
numChars uint Num chars to read.
리턴 string

ReadUBits() 공개 메소드

Reads Unsigned bits.
public ReadUBits ( uint bits ) : uint
bits uint Bits.
리턴 uint

ReadUInt16() 공개 메소드

Reads an Unsigned int16.
public ReadUInt16 ( ) : ushort
리턴 ushort

ReadUInt32() 공개 메소드

Reads an Unsigned int32.
public ReadUInt32 ( ) : uint
리턴 uint

ReadUInt64() 공개 메소드

Reads an Unsigned int64.
public ReadUInt64 ( ) : ulong
리턴 ulong

Seek() 공개 메소드

Seeks the specified position.
public Seek ( uint position ) : void
position uint Position.
리턴 void

Skip() 공개 메소드

Skips the specified bytes.
public Skip ( uint bytes ) : void
bytes uint Bytes.
리턴 void

SynchBits() 공개 메소드

Synchronizes the bits.
public SynchBits ( ) : void
리턴 void