pub fn write_varint(writer: &mut BitWriter, value: u32) -> Result<(), Error>Expand description
Encode value as an LP4-ext varint into writer.
Returns Err(Error::VarintOverflow) if value exceeds the single-extension
payload range (max 2^29 - 1). Recursive extension is not implemented;
callers must ensure values fit within the supported range.