pub struct AMF3Decoder {
pub string_reference_table: Vec<Vec<u8>>,
pub trait_reference_table: Vec<ClassDefinition>,
/* private fields */
}Expand description
Handles decoding AMF3
Fields§
§string_reference_table: Vec<Vec<u8>>The table used to cache repeated byte strings
trait_reference_table: Vec<ClassDefinition>The table used to cache repeated trait definitions
Implementations§
Source§impl AMF3Decoder
impl AMF3Decoder
Sourcepub fn register_custom_decoder<T: CustomDecoder + Default + 'static>(
&mut self,
name: &str,
)
pub fn register_custom_decoder<T: CustomDecoder + Default + 'static>( &mut self, name: &str, )
Register a custom decoder for external data formats
Sourcepub fn parse_single_element<'a>(&mut self, i: &'a [u8]) -> AMFResult<'a, Value>
pub fn parse_single_element<'a>(&mut self, i: &'a [u8]) -> AMFResult<'a, Value>
Parse a single AMF3 element from the input
Trait Implementations§
Source§impl Default for AMF3Decoder
impl Default for AMF3Decoder
Source§fn default() -> AMF3Decoder
fn default() -> AMF3Decoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AMF3Decoder
impl !Send for AMF3Decoder
impl !Sync for AMF3Decoder
impl !UnwindSafe for AMF3Decoder
impl Freeze for AMF3Decoder
impl Unpin for AMF3Decoder
impl UnsafeUnpin for AMF3Decoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more