Method Allocate
Allocate(Int32)
Creates a byte buffer based on a newly allocated byte array.
Declaration
public static ByteBuffer Allocate(int capacity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity | the capacity of the new buffer |
Returns
Type | Description |
---|---|
ByteBuffer | The created byte buffer. |