Class: module:AMF0/Deserializer

module:AMF0/Deserializer(classAlias, AMF_Deserialize)

new module:AMF0/Deserializer(classAlias, AMF_Deserialize)

Creates a new AMF0 deserializer
Parameters:
Name Type Description
classAlias module:AMF0/Deserializer~ClassAlias The class alias internally coming from the AMF entrypoint class
AMF_Deserialize function The 'deserialize' function coming from the AMF entrypoint class
Source:

Methods

deserialize(buffernullable) → {any}

Deserializes AMF binary data to an object
Parameters:
Name Type Attributes Description
buffer Buffer <nullable>
The buffer containing the AMF binary data, only applicable from base call in AMF entrypoint class
Source:
Returns:
The deserialized object
Type
any

deserializePacket(buffer, AMF3_REFERENCE_RESET) → {Packet}

Deserializes AMF binary data to a packet
Parameters:
Name Type Description
buffer Buffer The buffer containing the AMF binary data
AMF3_REFERENCE_RESET function The 'reset' function coming from the AMF3 Reference class
Source:
Throws:
If the AMF binary data 'length' isn't the same amount as what we deserialized
Type
RangeError
Returns:
The deserialized packet
Type
Packet