Class Range

    • Constructor Detail

      • Range

        public Range()
        Create a Range element with default values.
      • Range

        public Range​(int length)
        Create a Range element with specified length.
        Parameters:
        length - length of the transmitted data in bytes.
      • Range

        public Range​(int offset,
                     int length)
        Create a Range element with specified offset and length.
        Parameters:
        offset - offset in bytes from the beginning of the transmitted data.
        length - number of bytes that shall be transferred.
      • Range

        public Range​(Integer offset,
                     Integer length,
                     HashElement hash)
        Create a Range element with specified offset, length and hash.
        Parameters:
        offset - offset in bytes from the beginning of the transmitted data.
        length - number of bytes that shall be transferred.
        hash - hash of the bytes in the specified range.