Package Exports
- faster-byte-hex
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (faster-byte-hex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
This modules provides two methods parseByte16
and toString16
that are faster versions of parseInt and toString when working with bytes and hex strings.
#parseByte16
- str - string to read byte from
- offset - offset to start read with
equals to parseInt(str.substr(offset, 2), 16)
.
#toString16
- val - byte to convert to hex string
- uppercase - should string be uppercased
equals to val.toString(16)
or val.toString(16).toUpperCase()
.