Package software.amazon.awssdk.crt.utils
Class ByteBufferUtils
- java.lang.Object
-
- software.amazon.awssdk.crt.utils.ByteBufferUtils
-
public class ByteBufferUtils extends Object
Utility Class with Helper functions for working with ByteBuffers
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
transferData(ByteBuffer in, ByteBuffer out)
Transfers as much data as possible from an input ByteBuffer to an output ByteBuffer
-
-
-
Method Detail
-
transferData
public static int transferData(ByteBuffer in, ByteBuffer out)
Transfers as much data as possible from an input ByteBuffer to an output ByteBuffer- Parameters:
in
- The input ByteBufferout
- The output ByteBuffer- Returns:
- The number of bytes transferred
-
-