Example:
{
tag: K.ARRAY('s32', [1, 2, 3], {attr: "4"})
}
Represents:
<tag __type="s32" __count="3" attr="2">1 2 3</tag>
__type attribute, which is used during encoding and compression
array of data, __count attribute will be automatically set to content.length
attribute map in addition to __type and __count
Example:
{
tag: K.ATTR({attr: "1"}, {
inner: [{}, {}]
})
}
Represents:
<tag attr="1">
<inner/>
<inner/>
</tag>
Attribute map
Inner tag/data
Example:
{
tag: K.ITEM('s32', 1, {attr: "2"})
}
Represents:
<tag __type="s32" attr="2">1</tag>
__type attribute, which is used during encoding and compression
data of specified type
attribute map in addition to __type
Generated using TypeDoc
K stands for
Konstruct
Helper for constructing xml-like javascript object.