13 lines
271 B
Rust
13 lines
271 B
Rust
extern crate sehn;
|
|
|
|
use sehn::*;
|
|
|
|
fn main() {
|
|
let mut buf = [0u8; 2048];
|
|
let mut w: GenericWriter<_> = SliceBuffer::new(&mut buf).into();
|
|
let mut s = BaseSerializer::new(&mut w);
|
|
|
|
s.serialize_unit("hello", 1.0).unwrap();
|
|
|
|
println!("{}", w.as_str());
|
|
} |