flash_lso/
lib.rs

1//! Library for reading and writing the Adobe Flash Local Shared Object (LSO) file format and the contained AMF0/AMF3 data
2
3#![warn(
4    anonymous_parameters,
5    nonstandard_style,
6    rust_2018_idioms,
7    trivial_casts,
8    trivial_numeric_casts,
9    unreachable_pub,
10    unused_extern_crates,
11    unused_qualifications,
12    variant_size_differences,
13    missing_docs
14)]
15
16const HEADER_VERSION: [u8; 2] = [0x00, 0xbf];
17const HEADER_SIGNATURE: [u8; 10] = [0x54, 0x43, 0x53, 0x4f, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00];
18const PADDING: [u8; 1] = [0x00];
19
20const FORMAT_VERSION_AMF0: u8 = 0x0;
21const FORMAT_VERSION_AMF3: u8 = 0x3;
22
23#[cfg(feature = "serde")]
24#[macro_use]
25extern crate serde;
26
27/// Reading and Writing of the AMF0 file format
28pub mod amf0;
29/// Reading and Writing of the AMF3 file format
30pub mod amf3;
31
32/// Decoding error type
33pub mod errors;
34mod nom_utils;
35/// Reading of the Lso container format
36pub mod read;
37/// Types used for representing Lso contents
38pub mod types;
39/// Writing of the Lso container format
40pub mod write;
41
42/// Extra functionality such as decoders for popular external class formats
43pub mod extra;