Package software.amazon.awssdk.crt.utils
Class ByteBufferUtils
java.lang.Object
software.amazon.awssdk.crt.utils.ByteBufferUtils
Utility Class with Helper functions for working with ByteBuffers
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
transferData
(ByteBuffer in, ByteBuffer out) Transfers as much data as possible from an input ByteBuffer to an output ByteBuffer
-
Method Details
-
transferData
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
-