new module:AMF3/Deserializer(classAlias)
Creates a new AMF3 deserializer
Parameters:
| Name | Type | Description |
|---|---|---|
classAlias |
module:AMF3/Deserializer~ClassAlias | The class alias internally coming from the AMF entrypoint class |
- Source:
Members
reset
Returns the AMF3 reference reset method, needed for serializing and deserializing AMF packets in AMF0 base
- Source:
Methods
bytesAvailable() → {number}
Returns the amount of AMF3 bytes available, needed for deserializing AMF packets where a header has leftover data
- Source:
Returns:
The amount of AMF3 bytes available
- Type
- number
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