Data structure handling functions

Global buffer_pipe_done (int32_t id)
After this all attempts to use this buffer will result in error. All buffer_pipes are automatically deallocated when bytecode finishes execution.

Global buffer_pipe_new (uint32_t size)

Global buffer_pipe_new_fromfile (uint32_t pos)

Global buffer_pipe_read_avail (int32_t id)

Global buffer_pipe_read_get (int32_t id, uint32_t amount)
The 'amount' parameter should be obtained by a call to buffer_pipe_read_avail().

Global buffer_pipe_read_stopped (int32_t id, uint32_t amount)
Updates read cursor in buffer_pipe.

Global buffer_pipe_write_avail (int32_t id)

Global buffer_pipe_write_get (int32_t id, uint32_t size)
Returns pointer to writable buffer. The 'amount' parameter should be obtained by a call to buffer_pipe_write_avail().

Global buffer_pipe_write_stopped (int32_t id, uint32_t amount)

Global cli_readint16 (const void *buff)

Global cli_readint32 (const void *buff)

Global cli_writeint32 (void *offset, uint32_t v)

Global hashset_add (int32_t hs, uint32_t key)

Global hashset_contains (int32_t hs, uint32_t key)

Global hashset_done (int32_t id)
Trying to use the hashset after this will result in an error. The hashset may not be used after this. All hashsets are automatically deallocated when bytecode finishes execution.

Global hashset_empty (int32_t id)

Global hashset_new (void)

Global hashset_remove (int32_t hs, uint32_t key)

Global inflate_done (int32_t id)

Global inflate_init (int32_t from_buffer, int32_t to_buffer, int32_t windowBits)
'from_buffer' and writing uncompressed uncompressed data 'to_buffer'.

Global inflate_process (int32_t id)

Global le16_to_host (uint16_t v)

Global le32_to_host (uint32_t v)

Global le64_to_host (uint64_t v)

Global malloc (uint32_t size)

Global map_addkey (const uint8_t *key, int32_t ksize, int32_t id)

Global map_done (int32_t id)

Global map_find (const uint8_t *key, int32_t ksize, int32_t id)

Global map_getvalue (int32_t id, int32_t size)

Global map_getvaluesize (int32_t id)

Global map_new (int32_t keysize, int32_t valuesize)

Global map_remove (const uint8_t *key, int32_t ksize, int32_t id)

Global map_setvalue (const uint8_t *value, int32_t vsize, int32_t id)
 All Data Structures Files Functions Variables Enumerations Enumerator Defines