Class BinaryStreams

    • Constructor Detail

      • BinaryStreams

        public BinaryStreams()
    • Method Detail

      • inputStream

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

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

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

        public static 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

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