Function get_byte

Source
pub fn get_byte(bytes: &[u8], n: i32) -> Result<i32>
Expand description

Extracts n’th byte from binary string.

§Example

query T
SELECT get_byte('\x1234567890'::bytea, 4);
----
144