C# Class Lawo.IO.Buffer

Implements the common members of ReadBuffer and WriteBuffer.
Afficher le fichier Open project: Lawo/ember-plus-sharp

Méthodes publiques

Méthode Description
this ( int index ) : byte

Gets or sets the byte in the buffer at index.

Méthodes protégées

Méthode Description
Buffer ( int bufferSize ) : System

Initializes a new instance of the Buffer class.

EnsureCapacity ( int size ) : void

Ensures that Capacity >= size.

GetBuffer ( ) : byte[]

Gets a reference to the internal byte array.

Private Methods

Méthode Description
ThrowInvalidAsyncOperationException ( ) : Task
ThrowInvalidSyncOperationException ( ) : int

Method Details

Buffer() protected méthode

Initializes a new instance of the Buffer class.
is 0 or negative.
protected Buffer ( int bufferSize ) : System
bufferSize int The size of the buffer in bytes.
Résultat System

EnsureCapacity() protected méthode

Ensures that Capacity >= size.
protected EnsureCapacity ( int size ) : void
size int
Résultat void

GetBuffer() protected méthode

Gets a reference to the internal byte array.
protected GetBuffer ( ) : byte[]
Résultat byte[]

this() public méthode

Gets or sets the byte in the buffer at index.
>= .
public this ( int index ) : byte
index int
Résultat byte