[][src]Trait flash_lso::amf3::CustomEncoder

pub trait CustomEncoder {
    pub fn encode<'a>(
        &self,
        elements: &'a [Element],
        class_def: &Option<ClassDefinition>,
        encoder: &AMF3Encoder
    ) -> Vec<u8>; }

A trait to define encoding for custom types for use with Externalized objects

Required methods

pub fn encode<'a>(
    &self,
    elements: &'a [Element],
    class_def: &Option<ClassDefinition>,
    encoder: &AMF3Encoder
) -> Vec<u8>
[src]

This should implement the encoding of a given set of external elements for the given class definition Access to the AMF3Encoder is given to allow access to caches This implements the encoding side of externalized type support

Loading content...

Implementors

Loading content...