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
Показать файл Открыть проект Примеры использования класса

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

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