Skip to main content

parse_pg_bytea_hex

Function parse_pg_bytea_hex 

Source
pub fn parse_pg_bytea_hex(text: &str) -> Option<Vec<u8>>
Expand description

Parse PostgreSQL \x-prefixed bytea hex with no intermediate allocation.

assert_eq!(sql_values::parse_pg_bytea_hex(r"\x4869"), Some(vec![0x48, 0x69]));