Function get_bit

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

Extracts n’th bit from binary string.

§Example

query T
SELECT get_bit('\x1234567890'::bytea, 30);
----
1