public class OffHeapBufferSource extends Object implements BufferSource
| Constructor and Description |
|---|
OffHeapBufferSource() |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
allocateBuffer(int size)
Allocates a buffer of the given size.
|
String |
toString() |
public ByteBuffer allocateBuffer(int size)
BufferSource
If a suitable buffer cannot be allocated then null should be
returned. Implementations may place restrictions on the valid size value
they will accept.
allocateBuffer in interface BufferSourcesize - required buffer sizeCopyright © 2015–2024. All rights reserved.