BufferUtils.toBuffer

Create a new ByteBuffer using the provided byte array.

@param array the byte array to use. @param offset the offset within the byte array to use from @param length the length in bytes of the array to use @return ByteBuffer with provided byte array, in flush mode

  1. ByteBuffer toBuffer(int value)
  2. ByteBuffer toBuffer(long value)
  3. ByteBuffer toBuffer(string s)
  4. ByteBuffer toBuffer(byte[] array)
  5. ByteBuffer toBuffer(byte[] array, int offset, int length)
    class BufferUtils
    static
    toBuffer
    (
    byte[] array
    ,
    int offset
    ,
    int length
    )

Meta