2019-01-21 13:25:44 +00:00
|
|
|
extern crate sehn;
|
|
|
|
|
|
|
|
use sehn::*;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let mut buf = [0u8; 2048];
|
2019-01-21 13:32:48 +00:00
|
|
|
let mut w: GenericBufferWriter<_> = SliceBuffer::new(&mut buf).into();
|
2019-01-21 13:25:44 +00:00
|
|
|
let mut s = BaseSerializer::new(&mut w);
|
|
|
|
|
|
|
|
s.serialize_unit("hello", 1.0).unwrap();
|
|
|
|
|
|
|
|
println!("{}", w.as_str());
|
|
|
|
}
|