pub fn write_pascal_string<W: Write>(writer: &mut W, s: &str) -> Result<()>
Writes a Pascal-style string (i32 size prefix, null-terminated content).