flash-lso 0.7.0

Fast and safe SOL/AMF0/AMF3 parsing. Supports serde, Adobe flex and cyclic references
Documentation
1
2
3
4
5
6
7
8
9
10
/// An identifier for a cacheable element
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct CacheKey(usize);

impl CacheKey {
    /// Create a `CacheKey` from a pointer representing an element to be serialized
    pub fn from_ptr<T>(p: *const T) -> Self {
        Self(p as usize)
    }
}