Class ByteBufferUtils


  • public class ByteBufferUtils
    extends Object
    Utility Class with Helper functions for working with ByteBuffers
    • 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 ByteBuffer
        out - The output ByteBuffer
        Returns:
        The number of bytes transferred