https://github.com/sile/amf
A Rust Implementation of AMF (Action Media Format)
https://github.com/sile/amf
amf rust
Last synced: 9 months ago
JSON representation
A Rust Implementation of AMF (Action Media Format)
- Host: GitHub
- URL: https://github.com/sile/amf
- Owner: sile
- License: apache-2.0
- Created: 2016-10-24T17:59:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-02-03T10:08:22.000Z (over 4 years ago)
- Last Synced: 2025-06-23T15:51:00.960Z (about 1 year ago)
- Topics: amf, rust
- Language: Rust
- Size: 106 KB
- Stars: 12
- Watchers: 4
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
amf
===
[](https://crates.io/crates/amf)
[](https://docs.rs/amf)
[](https://github.com/sile/amf/actions)
[](https://coveralls.io/github/sile/amf?branch=master)

A Rust Implementation of AMF (Action Media Format).
Documentation
-------------
See [RustDoc Documentation](https://docs.rs/amf/).
Example
-------
Following code decodes a AMF0 encoded value read from the standard input:
```rust
// 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:
```bash
$ cat src/testdata/amf0-number.bin | cargo run --example decode_amf0
VALUE: Amf0(Number(3.5))
```
References
----------
- [AMF0 Specification](http://download.macromedia.com/pub/labs/amf/amf0_spec_121207.pdf)
- [AMF3 Specification](https://www.adobe.com/content/dam/acom/en/devnet/pdf/amf-file-format-spec.pdf)
- [Action Message Format - Wikipedia](https://en.wikipedia.org/wiki/Action_Message_Format)