#amf

amf

A Rust Implementation of AMF (Action Media Format)

7 unstable releases

0.4.0 Sep 12, 2021
0.3.1 Mar 16, 2020
0.3.0 Feb 29, 2020
0.2.1 Feb 23, 2020
0.1.0 Oct 28, 2016

#42 in Multimedia

Download history 10/week @ 2021-06-03 12/week @ 2021-06-10 7/week @ 2021-06-17 4/week @ 2021-06-24 13/week @ 2021-07-01 7/week @ 2021-07-08 41/week @ 2021-07-15 3/week @ 2021-07-22 24/week @ 2021-07-29 14/week @ 2021-08-05 9/week @ 2021-08-12 7/week @ 2021-08-19 7/week @ 2021-08-26 3/week @ 2021-09-02 26/week @ 2021-09-09 9/week @ 2021-09-16

51 downloads per month

MIT license

93KB
2.5K SLoC

amf

amf Documentation Actions Status Coverage Status License: MIT

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