pub fn write_to(out: impl Write) -> Result<(), Error>
Serialize the sparse index extension to out
out