OxL Reference

fn hex

Lower-case hexadecimal text of the bytes ("0a 02 68 69" without spaces: 0a026869); a debugging and testing aid.

Example:

oxl✓ checked in CI
use std.ser { bytesOf, hex }

fn main() io {
  print(hex(&bytesOf(&"AB")))
}
Output
4142
@intrinsic("ser.hex") pub(api) fn hex(b: &bytes) -> str

Since. 1.0.0-beta

Parameters

NameType
b&bytes

Returns

str

Effects

none declared (pure unless the body says otherwise)

Defined in: std/ser/ser.oxl:2351

See also