Function decode [src]

Decodes a hexadecimal string into a binary buffer. The output buffer must be half the size of the input buffer.

Prototype

pub fn decode( self: DecoderWithIgnore, bin: []u8, encoded: []const u8, ) error{ NoSpaceLeft, InvalidCharacter, InvalidPadding }![]const u8

Parameters

self: DecoderWithIgnorebin: []u8encoded: []const u8

Possible Errors

InvalidCharacter
InvalidPadding
NoSpaceLeft

Source

pub fn decode( self: DecoderWithIgnore, bin: []u8, encoded: []const u8, ) error{ NoSpaceLeft, InvalidCharacter, InvalidPadding }![]const u8 { return decodeAny(bin, encoded, self.ignored_chars); }