Class: module:AMF3/Serializer

module:AMF3/Serializer(classAlias)

new module:AMF3/Serializer(classAlias)

Creates a new AMF3 serializer
Parameters:
Name Type Description
classAlias module:AMF3/Serializer~ClassAlias The class alias internally coming from the AMF entrypoint class
Source:

Members

dynamicPropertyWriter

Cache the method of a Dynamic Property Writer to the AMF0 serializer class
Source:

reset

Returns the AMF3 reference reset method, needed for serializing and deserializing AMF packets in AMF0 base
Source:

Methods

flush() → {Buffer}

Flushes the DynBuffer instance by caching the current stream, clearing the holding stream, and returning the cached stream containing the AMF bytes
Source:
Returns:
The buffer containing AMF bytes
Type
Buffer

serialize(value) → {Serializer}

Serializes an object into AMF binary data
Parameters:
Name Type Description
value any The value to serialize
Source:
Returns:
Returns the AMF serializer to perform a swift flush in AMF entrypoint class
Type
Serializer