C# Class Gammtek.Conduit.IO.BitRingBuffer

Ring buffer to read and write bits and bytes.
Afficher le fichier Open project: ME3Explorer/ME3Explorer Class Usage Examples

Méthodes publiques

Méthode Description
BitRingBuffer ( ) : System

Initializes a new instance of the BitRingBuffer class with a default buffer size of 256 bytes.

BitRingBuffer ( int bufferSize ) : System

Initializes a new instance of the BitRingBuffer class with a buffer size of bufferSize bytes.

Clear ( ) : void

Clear all data in the buffer.

ReadBoolean ( ) : bool

Reads a single bit from the stream.

ReadByte ( ) : byte

Reads a byte from the stream.

ReadBytes ( byte buffer, int index, int count ) : void

Reads count bytes into buffer starting at index.

Write ( bool value ) : void

Writes the value as a bit in the buffer.

Write ( byte value ) : void

Writes the value to the buffer.

Write ( byte buffer, int index, int count ) : void

Writes count bytes from buffer starting at index.

Private Methods

Méthode Description
this ( int i ) : bool

Method Details

BitRingBuffer() public méthode

Initializes a new instance of the BitRingBuffer class with a default buffer size of 256 bytes.
public BitRingBuffer ( ) : System
Résultat System

BitRingBuffer() public méthode

Initializes a new instance of the BitRingBuffer class with a buffer size of bufferSize bytes.
public BitRingBuffer ( int bufferSize ) : System
bufferSize int
Résultat System

Clear() public méthode

Clear all data in the buffer.
public Clear ( ) : void
Résultat void

ReadBoolean() public méthode

Reads a single bit from the stream.
public ReadBoolean ( ) : bool
Résultat bool

ReadByte() public méthode

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

ReadBytes() public méthode

Reads count bytes into buffer starting at index.
public ReadBytes ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
Résultat void

Write() public méthode

Writes the value as a bit in the buffer.
public Write ( bool value ) : void
value bool
Résultat void

Write() public méthode

Writes the value to the buffer.
public Write ( byte value ) : void
value byte
Résultat void

Write() public méthode

Writes count bytes from buffer starting at index.
public Write ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
Résultat void