Import std.text.encoding
Hex
struct
Public Struct Hex
Hex, which writes each byte as two of the digits "0" to "9" and "a" to "f".
Examples
Expect(Hex.Encode([0xCA, 0xFE] As UInt8[]) == "cafe")
Expect(Hex.Decode("CAFE") == [0xCA, 0xFE] As UInt8[])std/text/encoding.fb, line 291
-
bytesas hex, its digits from "A" to "F" whenuppersays. -
The bytes hex
textholds, two digits each, in either case, or Null when it isn't hex.
Report an issue with this page or with FutureBlitz on GitHub.