Constructor
new BitWriter()
A writer class that makes writing bit data easy
- Source:
Methods
append(data, length)
Appends data to the array
Parameters:
Name | Type | Description |
---|---|---|
data |
Which data (is converted to a number) | |
length |
How many bits? |
- Source:
jumpTo(pos)
Jumps to a specific positon in the bitcode
If the position does not exist yet, it is created
Parameters:
Name | Type | Description |
---|---|---|
pos |
Position where it jumps to |
- Source:
toUint8Array()
Returns the Uint8Array representation of the data
This function is quite costly so dont call it too often
- Source: