Interface BinaryStream

    • Method Detail

      • position

        int position()
        Returns:
        Position.
      • position

        void position​(int pos)
        Parameters:
        pos - Position.
      • array

        byte[] array()
        Returns:
        Underlying array.
      • arrayCopy

        byte[] arrayCopy()
        Returns:
        Copy of data in the stream.
      • offheapPointer

        long offheapPointer()
        Returns:
        Offheap pointer if stream is offheap based and "forceHeap" flag is not set; otherwise 0.
      • rawOffheapPointer

        long rawOffheapPointer()
        Returns:
        Offheap pointer if stream is offheap based; otherwise 0.
      • hasArray

        boolean hasArray()
        Returns:
        True is stream is array based.
      • capacity

        int capacity()
        Returns:
        Total capacity.