Class SpaceSegment

    • Constructor Detail

      • SpaceSegment

        public SpaceSegment​(long length)
    • Method Detail

      • getStartPosition

        public long getStartPosition()
        Description copied from class: DataSegment
        Returns start position.
        Specified by:
        getStartPosition in class DataSegment
        Returns:
        start position
      • setStartPosition

        public void setStartPosition​(long startPosition)
      • getLength

        public long getLength()
        Description copied from class: DataSegment
        Returns length of this segment in bytes.
        Specified by:
        getLength in class DataSegment
        Returns:
        length of this segment
      • setLength

        public void setLength​(long length)
      • getByte

        public byte getByte​(long position)
      • copy

        @Nonnull
        public DataSegment copy()
        Description copied from class: DataSegment
        Returns detached copy of this segment.
        Specified by:
        copy in class DataSegment
        Returns:
        copy of this segment