#codec #decoding #aka #gsm #3gpp #23

gsm7

GSM-7 (aka GSM 03.38 or 3GPP 23.038) encoding and decoding in Rust

3 unstable releases

0.3.0 Oct 22, 2020
0.1.1 Dec 15, 2019
0.1.0 Jul 22, 2019

#1286 in Encoding

Download history 21/week @ 2024-03-13 40/week @ 2024-03-20 65/week @ 2024-03-27 194/week @ 2024-04-03 155/week @ 2024-04-10 186/week @ 2024-04-17 164/week @ 2024-04-24 111/week @ 2024-05-01 92/week @ 2024-05-08 130/week @ 2024-05-15 184/week @ 2024-05-22 177/week @ 2024-05-29 237/week @ 2024-06-05 245/week @ 2024-06-12 203/week @ 2024-06-19 123/week @ 2024-06-26

832 downloads per month

MIT license

8KB
193 lines

GSM-7 (aka GSM 03.38 or 3GPP 23.038) encoding and decoding in Rust

API Documentation

Example

Decoding

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");

Encoding

let mut writer = Gsm7Writer::new(Vec::new());
writer.write_str("Hello")?;

let v = writer.into_writer()?;
println!("v: {:?}", v);

License

gsm7 is distributed under the MIT license.

Dependencies

~150KB