C# Class 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).
Inheritance: System.IO.BinaryReader
Afficher le fichier Open project: bladecoding/SwfExport Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

BufferedBinaryReader() public méthode

Creates a new BufferedBinaryReader instance.
public BufferedBinaryReader ( Stream stream ) : System
stream Stream Stream.
Résultat System

BufferedBinaryReader() public méthode

Creates a new BufferedBinaryReader instance.
public BufferedBinaryReader ( Stream stream, bool useLittleEndian ) : System
stream Stream Stream.
useLittleEndian bool Use little endian.
Résultat System

PeekByte() public méthode

Peeks the byte.
public PeekByte ( ) : byte
Résultat byte

PeekBytes() public méthode

Peeks the bytes.
public PeekBytes ( uint numToPeek ) : byte[]
numToPeek uint Num to peek.
Résultat byte[]

PeekUInt16() public méthode

Peeks an Unsigned int16.
public PeekUInt16 ( ) : ushort
Résultat ushort

PeekUInt32() public méthode

Peeks an Unsigned int32.
public PeekUInt32 ( ) : uint
Résultat uint

ReadBoolean() public méthode

Reads the bool.
public ReadBoolean ( ) : bool
Résultat bool

ReadByte() public méthode

Reads the byte.
public ReadByte ( ) : byte
Résultat byte

ReadChar() public méthode

Reads the char.
public ReadChar ( ) : char
Résultat char

ReadFloat() public méthode

Reads the float.
public ReadFloat ( ) : float
Résultat float

ReadFloat() public méthode

Reads the float.
public ReadFloat ( uint numBits ) : float
numBits uint Bits number.
Résultat float

ReadFloat() public méthode

Reads the float.
public ReadFloat ( uint numBits, int fractionSize ) : float
numBits uint Num bits.
fractionSize int Size of the fraction.
Résultat float

ReadFloatWord() public méthode

Reads the float word.
public ReadFloatWord ( uint mantissaSize, uint fractionSize ) : float
mantissaSize uint Size of the mantissa.
fractionSize uint Size of the fraction.
Résultat float

ReadInt16() public méthode

Reads the int16.
public ReadInt16 ( ) : short
Résultat short

ReadInt32() public méthode

Reads the int32.
public ReadInt32 ( ) : int
Résultat int

ReadInt64() public méthode

Reads the int64.
public ReadInt64 ( ) : long
Résultat long

ReadSBits() public méthode

Reads Signed bits.
public ReadSBits ( uint bits ) : int
bits uint Bits.
Résultat int

ReadString() public méthode

Reads the string.
public ReadString ( ) : string
Résultat string

ReadString() public méthode

Reads the string.
public ReadString ( uint numChars ) : string
numChars uint Num chars to read.
Résultat string

ReadUBits() public méthode

Reads Unsigned bits.
public ReadUBits ( uint bits ) : uint
bits uint Bits.
Résultat uint

ReadUInt16() public méthode

Reads an Unsigned int16.
public ReadUInt16 ( ) : ushort
Résultat ushort

ReadUInt32() public méthode

Reads an Unsigned int32.
public ReadUInt32 ( ) : uint
Résultat uint

ReadUInt64() public méthode

Reads an Unsigned int64.
public ReadUInt64 ( ) : ulong
Résultat ulong

Seek() public méthode

Seeks the specified position.
public Seek ( uint position ) : void
position uint Position.
Résultat void

Skip() public méthode

Skips the specified bytes.
public Skip ( uint bytes ) : void
bytes uint Bytes.
Résultat void

SynchBits() public méthode

Synchronizes the bits.
public SynchBits ( ) : void
Résultat void