Lines Matching defs:length
42 * /------------entire length---------------\\
53 * e == length of buffer.
55 * a-e == entire length of buffer.
63 * with the memory region of size length bytes starting at location base.
98 * respectively. lwres_buffer_putmem() copies length bytes of memory at
99 * base to b. Conversely, lwres_buffer_getmem() copies length bytes of
112 lwres_buffer_init(lwres_buffer_t *b, void *base, unsigned int length)
115 * Make 'b' refer to the 'length'-byte region starting at base.
122 b->length = length;
137 b->length = 0;
149 REQUIRE(b->used + n <= b->length);
239 REQUIRE(b->used + 1 <= b->length);
274 REQUIRE(b->used + 2 <= b->length);
311 REQUIRE(b->used + 4 <= b->length);
322 /* copies length bytes of memory at base to b */
325 unsigned int length)
330 REQUIRE(b->used + length <= b->length);
333 memmove(cp, base, length);
334 b->used += length;
337 /* copies length bytes of memory at b to base */
340 unsigned int length)
345 REQUIRE(b->used - b->current >= length);
349 b->current += length;
351 memmove(base, cp, length);