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