toHexString
Formats bytes in this byte string using the specified format.
Note that only HexFormat.upperCase and HexFormat.BytesHexFormat affect formatting.
Parameters
the HexFormat to use for formatting, HexFormat.Default by default.
Throws
if the result length is more than String maximum capacity.
Formats bytes in this byte string using the specified HexFormat.
Note that only HexFormat.upperCase and HexFormat.BytesHexFormat affect formatting.
Parameters
the beginning (inclusive) of the subrange to format, 0 by default.
the end (exclusive) of the subrange to format, size of this byte string by default.
the HexFormat to use for formatting, HexFormat.Default by default.
Throws
when startIndex or endIndex is out of range of this byte string indices.
if the result length is more than String maximum capacity.