Crate scuffle_amf0

Source
Expand description

A pure-rust implementation of AMF0 encoder and decoder.

This crate provides serde support for serialization and deserialization of AMF0 data.

§Specification

NameVersionLinkComments
Action Message Format – AMF 0-https://rtmp.veriskope.com/pdf/amf0-file-format-specification.pdfRefered to as ‘AMF0 spec’ in this documentation

§Limitations

  • Does not support AMF0 references.
  • Does not support the AVM+ Type Marker. (see AMF 0 spec, 3.1)

§Example

// Decode a string value from bytes
let value: String = scuffle_amf0::from_slice(bytes)?;

// .. do something with the value

// Encode a value into a writer
scuffle_amf0::to_writer(&mut writer, &value)?;

§Status

This crate is currently under development and is not yet stable.

Unit tests are not yet fully implemented. Use at your own risk.

§License

This project is licensed under the MIT or Apache-2.0 license. You can choose between one of them if you use this work.

SPDX-License-Identifier: MIT OR Apache-2.0

Re-exports§

pub use de::from_buf;serde
pub use de::from_reader;serde
pub use de::from_slice;serde
pub use decoder::Amf0Decoder;
pub use encoder::Amf0Encoder;
pub use error::Amf0Error;
pub use error::Result;
pub use ser::to_bytes;serde
pub use ser::to_writer;serde
pub use value::Amf0Array;
pub use value::Amf0Object;
pub use value::Amf0Value;

Modules§

deserde
Deserialize AMF0 data to a Rust data structure.
decoder
AMF0 decoder
encoder
AMF0 encoder
error
AMF0 error type.
serserde
Serialize a Rust data structure into AMF0 data.
value
AMF0 value types.

Enums§

Amf0Marker
AMF0 marker types.