Class: AMF

AMF()

new AMF()

Author:
  • SeirDotExe
License:
  • BSD-3-Clause
Source:

Members

classAlias :ClassAlias

Initialize the class alias holder
Type:
Source:

Methods

(static) deserialize(buffer, versionopt) → {any}

Deserializes AMF binary data to an object
Parameters:
Name Type Attributes Default Description
buffer Buffer The AMF binary data
version 0 | 3 <optional>
3 The AMF version
Source:
Returns:
The deserialized object
Type
any

(static) deserializePacket(buffer) → {Packet}

Deserializes AMF binary data to a packet
Parameters:
Name Type Description
buffer Buffer The AMF binary data
Source:
Returns:
The deserialized packet
Type
Packet

(static) registerDynamicPropertyWriter(method, versionopt)

Registers a Dynamic Property Writer to dynamically modify an object before it's serialized
Parameters:
Name Type Attributes Default Description
method function The Dynamic Property Writer method
version 0 | 3 <optional>
3 The AMF version
Source:
Throws:
There must be 1 argument in the given method
Type
ReferenceError

(static) serialize(value, versionopt) → {Buffer}

Serializes an object into AMF binary data
Parameters:
Name Type Attributes Default Description
value any Any supported value to serialize
version 0 | 3 <optional>
3 The AMF version
Source:
Returns:
Returns the AMF data in a buffer
Type
Buffer

(static) serializePacket(packet) → {Buffer}

Serializes a packet into AMF binary data
Parameters:
Name Type Description
packet Packet The AMF packet to serialize
Source:
Returns:
Returns the AMF packet data in a buffer
Type
Buffer