Class Buffer


  • public class Buffer
    extends java.lang.Object
    • Field Detail

      • flags

        public int flags
      • object

        public java.lang.Object object
      • data

        public byte[] data
      • offset

        public int offset
      • length

        public int length
      • caps

        public Caps caps
      • time_offset

        public long time_offset
      • timestamp

        public long timestamp
      • timestampEnd

        public long timestampEnd
      • duplicate

        public boolean duplicate
    • Constructor Detail

      • Buffer

        public Buffer()
    • Method Detail

      • create

        public static Buffer create()
      • isFlagSet

        public boolean isFlagSet​(int flag)
      • setFlag

        public void setFlag​(int flag,
                            boolean val)
      • free

        public void free()
      • ensureSize

        public void ensureSize​(int length)
      • copyData

        public void copyData​(byte[] data,
                             int offset,
                             int length)
        copies data into the buffer.
        Parameters:
        data - : the bytearray with data to copy
        offset - : offset in the bytearray of first byte
        length - : length of data to copy