Lines Matching defs:out

74  * \brief Checks if 'out' still has 'space_needed' empty bytes
75 * @param out the byte array
76 * @param out_len the number of bytes already in the array 'out'
77 * @param out_sz the length of the currently reserved space of 'out'
78 * @param space_needed the number of bytes that need to be appended to 'out'
82 ensure_enough_space(uint8_t ** out, int *out_len, int *out_sz,
92 void *new_out = realloc(*out, *out_sz);
95 *out = new_out;
204 * \brief Compiles a whole subexpression and appends the byte code to 'out'
208 * @param out a pointer to the array that holds the compiled byte code
214 compile_subtree(char *expr, int from_pos, int to_pos, uint8_t ** out,
240 (out, out_len, out_sz, op_list[op].reserved_length))
242 (*out)[*out_len] = op_list[op].opcode;
247 compile_subtree(expr, from_pos, pos - 1, out, out_len,
254 compile_subtree(expr, pos + opstrlen, to_pos, out,
268 *((uint32_t *) & ((*out)[old_len - 4])) = *out_len - old_len;
284 if (!ensure_enough_space(out, out_len, out_sz, 1 + 1))
286 (*out)[*out_len] = OP_INT8;
288 (*out)[*out_len] = (uint8_t) val;
291 if (!ensure_enough_space(out, out_len, out_sz, 1 + 2))
293 (*out)[*out_len] = OP_INT16;
295 *((uint16_t *) & ((*out)[*out_len])) = (uint16_t) val;
298 if (!ensure_enough_space(out, out_len, out_sz, 1 + 4))
300 (*out)[*out_len] = OP_INT32;
302 *((uint32_t *) & ((*out)[*out_len])) = (uint32_t) val;
305 if (!ensure_enough_space(out, out_len, out_sz, 1 + 8))
307 (*out)[*out_len] = OP_INT64;
309 *((uint64_t *) & ((*out)[*out_len])) = val;
320 * @param[out] filter_code Points to the memory buffer that contains the compiled filter, or NULL, if an error occurred
321 * @param[out] filter_len Indicates the length of the compiled code, or contains the error position in the filter string on failure