amf 0.1.1

A Rust Implementation of AMF (Action Media Format)

Crate amf [] [src]

A Rust Implementation of AMF (Action Media Format).

Examples

use amf::{Value, Amf0Value, Version};

// Encodes a AMF0's number
let number = Value::from(Amf0Value::Number(1.23));
let mut buf = Vec::new();
number.write_to(&mut buf).unwrap();

// Decodes above number
let decoded = Value::read_from(&mut &buf[..], Version::Amf0).unwrap();
assert_eq!(number, decoded);

References

Reexports

pub use amf0::Value as Amf0Value;
pub use amf3::Value as Amf3Value;

Modules

amf0

An AMF0 implementation.

amf3

An AMF3 implementation.

error

AMF error.

Structs

Pair

Key-value pair.

Enums

Value

AMF value.

Version

Format version.

Type Definitions

DecodeResult

AMF decoding result.