Interface BinaryStreamsFactory

    • Method Detail

      • inputStream

        BinaryInputStream inputStream​(byte[] data,
                                      int pos)
        Create stream with pointer set at the given position.
        Parameters:
        data - Data.
        pos - Position.
        Returns:
        Stream.
      • inputStream

        BinaryInputStream inputStream​(byte[] data)
        Create stream with pointer set at the given position.
        Parameters:
        data - Data.
        Returns:
        Stream.
      • inputStream

        BinaryInputStream inputStream​(long ptr,
                                      int cap)
        Parameters:
        ptr - Pointer.
        cap - Capacity.
        Returns:
        Stream.
      • inputStream

        BinaryInputStream inputStream​(long ptr,
                                      int cap,
                                      boolean forceHeap)
        Parameters:
        ptr - Pointer.
        cap - Capacity.
        forceHeap - If true method BinaryStream.offheapPointer() returns 0 and unmarshalling will create heap-based objects.
        Returns:
        Stream.
      • outputStream

        BinaryOutputStream outputStream​(int cap)
        Parameters:
        cap - Capacity.
        Returns:
        Binary output stream data.