@Immutable public final class ByteBufferUtils extends Object
ByteBuffer utility methods.| Modifier and Type | Method and Description |
|---|---|
static int |
transfer(ByteBuffer aSrcBuffer,
ByteBuffer aDstBuffer,
boolean bNeedsFlip)
Transfer as much as possible from source to dest buffer.
|
@Nonnegative public static int transfer(@Nonnull ByteBuffer aSrcBuffer, @Nonnull ByteBuffer aDstBuffer, boolean bNeedsFlip)
aSrcBuffer - Source buffer. May not be null.aDstBuffer - Destination buffer. May not be null.bNeedsFlip - whether or not to flip srcCopyright © 2006–2015 phloc systems. All rights reserved.