Returns a hex string by slicing data from the start offset to the end offset.
the data to be sliced.
Optional
the start offset (default: 0).
the end offset (default: length of data).
Returns a hex string by slicing data from the start offset to the end offset.