Class RawBuffer

    • Constructor Detail

      • RawBuffer

        public RawBuffer()
        Create an empty buffer.
      • RawBuffer

        public RawBuffer​(ArrayList<Byte> buffer)
        Create a buffer with initial content.
        Parameters:
        buffer - A buffer of values to be assigned this buffer.
      • RawBuffer

        public RawBuffer​(byte[] bytes)
        Create a buffer with initial content.
        Parameters:
        bytes - A buffer of bytes to be assigned this buffer.
    • Method Detail

      • put

        public RawBuffer put​(byte value)
        Insert a byte value into this buffer.
        Parameters:
        value - The value to add to the buffer.
        Returns:
        Reference to this.
      • put

        public RawBuffer put​(byte[] values)
        Insert an array of byte values into this buffer.
        Parameters:
        values - The array to add to the buffer.
        Returns:
        Reference to this.
      • getBytes

        public byte[] getBytes()
        Create a copy of data in the internal buffer.
        Returns:
        A copy of the data.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object