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 Details

    • 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 ByteBuffer
      out - The output ByteBuffer
      Returns:
      The number of bytes transferred