pub(crate) fn byte<S: AsRef<[u8]> + ?Sized>(s: &S, idx: usize) -> u8
Get the byte at offset idx, or a default of b'\0' if we’re looking past the end of the input buffer.
b'\0'