#codec #decoding #aka #gsm #3gpp #038

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

#2262 in Encoding

Download history 184/week @ 2024-07-20 274/week @ 2024-07-27 134/week @ 2024-08-03 187/week @ 2024-08-10 185/week @ 2024-08-17 121/week @ 2024-08-24 329/week @ 2024-08-31 509/week @ 2024-09-07 436/week @ 2024-09-14 423/week @ 2024-09-21 423/week @ 2024-09-28 468/week @ 2024-10-05 421/week @ 2024-10-12 461/week @ 2024-10-19 291/week @ 2024-10-26 499/week @ 2024-11-02

1,762 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