pub fn encode_varint_buf( value: u64, out: &mut [u8], ) -> Result<usize, &'static str>
编码 QUIC 变长度整数到固定输出缓冲区(fail-closed)
写入的字节数,或缓冲区不足/值超界时返回错误。