8 releases (1 stable)

1.0.0 Feb 3, 2022
0.4.0 Sep 12, 2021
0.3.1 Mar 16, 2020
0.3.0 Feb 29, 2020
0.1.0 Oct 28, 2016

#1420 in Parser implementations

Download history 16/week @ 2024-07-30 2/week @ 2024-09-17 16/week @ 2024-09-24 3/week @ 2024-10-01

93 downloads per month

MIT/Apache

94KB
2.5K SLoC

amf

amf Documentation Actions Status Coverage Status License

A Rust Implementation of AMF (Action Media Format).

Documentation

See RustDoc Documentation.

Example

Following code decodes a AMF0 encoded value read from the standard input:

// file: examples/decode_amf0.rs
extern crate amf;

use std::io;
use amf::{Value, Version};

fn main() {
    let mut input = io::stdin();
    let amf0_value = Value::read_from(&mut input, Version::Amf0).unwrap();
    println!("VALUE: {:?}", amf0_value);
}

An execution result:

$ cat src/testdata/amf0-number.bin | cargo run --example decode_amf0
VALUE: Amf0(Number(3.5))

References

Dependencies

~115KB