Documentation

hex.bytes() function

Flux 0.131.0+

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


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.