Method | Description | |
---|---|---|
BufferPool ( int bufferSize ) : System |
Initializes a new instance of the BufferPool class.
|
|
Dequeue ( ) : byte[] |
Get a buffer. Will create one if queue is empty. |
|
Enqueue ( byte buffer ) : void |
Enqueues the specified buffer.
|
Method | Description | |
---|---|---|
CreateBuffer ( ) : byte[] |
Creates the buffer.
|
public BufferPool ( int bufferSize ) : System | ||
bufferSize | int | How large buffers to allocate. |
return | System |
public Enqueue ( byte buffer ) : void | ||
buffer | byte | Buffer to enqueue. |
return | void |