@Immutable public final class ByteBufferHelper 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 © 2014–2019 Philip Helger. All rights reserved.