Module encoding.hex stdlib

encoding.hex
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
1
Imported by:
0
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

Imported by

This section is empty.

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

#fn decode

fn decode(s string) ![]u8

decode converts a hex string into an array of bytes. The expected input format is 2 ASCII characters for each output byte. If the provided string length is not a multiple of 2, an implicit 0 is prepended to it.

#fn encode

manualfree
fn encode(bytes []u8) string

encode converts an array of bytes into a string of ASCII hex bytes. The output will always be a string with length a multiple of 2.

Structs

This section is empty.

Interfaces

This section is empty.

Enums

This section is empty.