C# 클래스 Gammtek.Conduit.IO.BitRingBuffer

Ring buffer to read and write bits and bytes.
파일 보기 프로젝트 열기: ME3Explorer/ME3Explorer 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
this ( int i ) : bool

메소드 상세

BitRingBuffer() 공개 메소드

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

BitRingBuffer() 공개 메소드

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

Clear() 공개 메소드

Clear all data in the buffer.
public Clear ( ) : void
리턴 void

ReadBoolean() 공개 메소드

Reads a single bit from the stream.
public ReadBoolean ( ) : bool
리턴 bool

ReadByte() 공개 메소드

Reads a byte from the stream.
public ReadByte ( ) : byte
리턴 byte

ReadBytes() 공개 메소드

Reads count bytes into buffer starting at index.
public ReadBytes ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
리턴 void

Write() 공개 메소드

Writes the value as a bit in the buffer.
public Write ( bool value ) : void
value bool
리턴 void

Write() 공개 메소드

Writes the value to the buffer.
public Write ( byte value ) : void
value byte
리턴 void

Write() 공개 메소드

Writes count bytes from buffer starting at index.
public Write ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
리턴 void