C# Class Lawo.IO.Buffer

Implements the common members of ReadBuffer and WriteBuffer.
Show file Open project: Lawo/ember-plus-sharp

Public Methods

Method Description
this ( int index ) : byte

Gets or sets the byte in the buffer at index.

Protected Methods

Method 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

Method Description
ThrowInvalidAsyncOperationException ( ) : Task
ThrowInvalidSyncOperationException ( ) : int

Method Details

Buffer() protected method

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.
return System

EnsureCapacity() protected method

Ensures that Capacity >= size.
protected EnsureCapacity ( int size ) : void
size int
return void

GetBuffer() protected method

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

this() public method

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