pub fn encode_heights_to<W: Write>(
elevations: &[f64],
width: u32,
height: u32,
writer: W,
) -> Result<()>Expand description
Stream-encode a width × height elevation grid as little-endian u16
bytes to a writer. Uses a 4 KiB stack buffer.