public class ByteBufferUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanDirectBuffer(ByteBuffer buf) |
static ByteBuffer |
expand(ByteBuffer in,
int newSize)
Expands buffer to the given size unless it is already as big or bigger.
|
public static ByteBuffer expand(ByteBuffer in, int newSize)
in - Buffer to expandnewSize - The size t which the buffer should be expandedpublic static void cleanDirectBuffer(ByteBuffer buf)
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.