Interface ApplicationBufferHandler

    • Field Detail

      • EMPTY_BUFFER

        static final java.nio.ByteBuffer EMPTY_BUFFER
        Empty byte buffer constant.
    • Method Detail

      • setByteBuffer

        void setByteBuffer​(java.nio.ByteBuffer buffer)
        Set the byte buffer.
        Parameters:
        buffer - the byte buffer
      • getByteBuffer

        java.nio.ByteBuffer getByteBuffer()
        Returns the current byte buffer.
        Returns:
        the byte buffer
      • expand

        void expand​(int size)
        Expand the byte buffer to at least the given size. Some implementations may not implement this.
        Parameters:
        size - the desired size