Méthode | 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.
|
Méthode | Description | |
---|---|---|
CreateBuffer ( ) : byte[] |
Creates the buffer.
|
public BufferPool ( int bufferSize ) : System | ||
bufferSize | int | How large buffers to allocate. |
Résultat | System |
public Enqueue ( byte buffer ) : void | ||
buffer | byte | Buffer to enqueue. |
Résultat | void |