Skip to main content

Module marker

Module marker 

Source
Expand description

AMF0 type markers ([AMF0] §2.1, docs/rtmp.md §8.1) — 1 byte.

Constants§

BOOLEAN
Boolean (§2.3): 1 byte, 0 = false, nonzero = true.
DATE
Date (§2.13): DOUBLE (ms since Unix epoch, UTC) + reserved S16 time zone (MUST be 0x0000).
ECMA_ARRAY
ECMA Array (§2.10): U32 associative-count + key/value pairs terminated by OBJECT_END.
LONG_STRING
Long String (§2.14): U32 length + UTF-8 bytes, for strings over 65535 bytes.
NULL
null (§2.7): no payload.
NUMBER
Number (§2.2): DOUBLE, 8-byte big-endian IEEE-754.
OBJECT
Object (§2.5): key/value pairs terminated by OBJECT_END.
OBJECT_END
Object End (§2.11): always preceded by an empty (U16 = 0) key — the 3-byte sequence 00 00 09.
STRICT_ARRAY
Strict Array (§2.12): U32 count + that many values, ordinal only.
STRING
String (§2.4): U16 length + UTF-8 bytes.
UNDEFINED
undefined (§2.8): no payload.