}
+uint
+cell_batch_free_space(const struct cell_context *cell)
+{
+ uint free = CELL_BATCH_BUFFER_SIZE
+ - cell->batch_buffer_size[cell->cur_batch];
+ return free;
+}
+
+
/**
* \param cmd command to append
* \param length command size in bytes
void *pos;
uint size;
+ ASSERT(bytes % 4 == 0);
+
assert(cell->cur_batch >= 0);
size = cell->batch_buffer_size[cell->cur_batch];
extern void
cell_batch_flush(struct cell_context *cell);
+extern uint
+cell_batch_free_space(const struct cell_context *cell);
+
extern void
cell_batch_append(struct cell_context *cell, const void *cmd, uint length);