hex.bytes() function
The hex.bytes()
function is a user-contributed function maintained by
the package author and can
be updated or removed at any time.
hex.bytes()
decodes a hexadecimal string and converts the decoded value to bytes.
import "contrib/bonitoo-io/hex"
hex.bytes(v: "6869")
// Returns [104 105] (the bytes representation of "hi")
Parameters
v
Value to convert.
Examples
Convert a hexadecimal string to bytes
import "contrib/bonitoo-io/hex"
hex.bytes(v: "FF5733")
// Returns [255 87 51] (bytes)
Package author and maintainer
Github: @bonitoo-io, @sranka
InfluxDB Slack: @sranka
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.