Skip to main content

format_bit_string

Function format_bit_string 

Source
pub fn format_bit_string(nbits: u32, bytes: &[u8]) -> String
Expand description

v7.37.5 ζ-A — render a BIT / BIT VARYING as a binary string of '0' and '1' chars (PG canonical text form). Bytes are packed big-endian within each byte: the most-significant bit of byte 0 is bit 0 of the bit string.