Members
classAlias :ClassAlias
Initialize the class alias holder
Type:
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 |
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 |
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 |
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 |
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 |
Returns:
Returns the AMF packet data in a buffer
- Type
- Buffer