Skip to main content

decode_hex_to_bytes

Function decode_hex_to_bytes 

Source
pub fn decode_hex_to_bytes(hex: &str) -> Result<Vec<u8>, WasmCommonError>
Expand description

Decode a PostgreSQL-style hexadecimal byte string.

ยงErrors

Returns WasmCommonError::Decode for an odd length or a non-hexadecimal digit.