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