pub fn write_blob(buf: &mut Vec<u8>, bytes: &[u8]) -> Result<u32>
Append a length-prefixed blob (string/bytes payload), returning its offset.