Function hltas::write::gen_hltas

source ·
pub fn gen_hltas<W: Write>(w: W, hltas: &HLTAS) -> Result<(), GenError>
Expand description

Prints HLTAS into writer.

Examples

use hltas::HLTAS;

let contents = "version 1
demo test
frames
------b---|------|------|0.001|-|-|5
";

let hltas = HLTAS::from_str(contents).unwrap();
let mut buf = Vec::new();
hltas::write::gen_hltas(&mut buf, &hltas).unwrap();
assert_eq!(buf, contents.as_bytes());