EncodeHelper
Holds a list of items and helps to merge them into a single array of packed binary data
Test:
Constructor Summary
Public Constructor | ||
public |
Create a new EncodeHelper instance |
Member Summary
Public Members | ||
public |
|
|
public |
data: array |
Method Summary
Public Methods | ||
public |
add(item: *): EncodeHelper Packs an item and adds it to the list |
|
public |
merge(): Uint8Array Merge all added items into one Uint8Array |
Public Constructors
Public Methods
public add(item: *): EncodeHelper source
Packs an item and adds it to the list
Params:
Name | Type | Attribute | Description |
item | * | Any object |