Crates.io | gsm7 |
lib.rs | gsm7 |
version | 0.3.0 |
source | src |
created_at | 2019-07-22 11:17:55.974584 |
updated_at | 2020-10-22 03:56:16.519641 |
description | GSM-7 (aka GSM 03.38 or 3GPP 23.038) encoding and decoding in Rust |
homepage | |
repository | |
max_upload_size | |
id | 150742 |
size | 8,514 |
let v = vec![84, 58, 157, 14];
let reader = Gsm7Reader::new(io::Cursor::new(&v));
let s = reader.collect::<io::Result<String>>()?;
assert_eq!(&s, "Tttt");
let mut writer = Gsm7Writer::new(Vec::new());
writer.write_str("Hello")?;
let v = writer.into_writer()?;
println!("v: {:?}", v);
gsm7 is distributed under the MIT license.