add a possibly new value to table and return its index.
same as addValue but returns an uint for easy encoding
get a specific constant
foreach over const table
Seal the const table so that no more constants can be added.
convert const table to ubytes
reads a ConstTable from an ubyte stream
This is a wrapper around a dynamic array. When a value is added, ConstTable determines if the value is already in the entries or adds a new entry and returns the index. A ConstTable is shared among all Chunks compiled under the same Compiler.compile call.