Lines Matching refs:length
51 * /------------entire length---------------\\
62 * e == length of buffer.
64 * a-e == entire length of buffer.
72 * with the memory region of size length bytes starting at location base.
107 * respectively. lwres_buffer_putmem() copies length bytes of memory at
108 * base to b. Conversely, lwres_buffer_getmem() copies length bytes of
121 lwres_buffer_init(lwres_buffer_t *b, void *base, unsigned int length)
124 * Make 'b' refer to the 'length'-byte region starting at base.
131 b->length = length;
146 b->length = 0;
158 REQUIRE(b->used + n <= b->length);
248 REQUIRE(b->used + 1 <= b->length);
283 REQUIRE(b->used + 2 <= b->length);
320 REQUIRE(b->used + 4 <= b->length);
331 /* copies length bytes of memory at base to b */
334 unsigned int length)
339 REQUIRE(b->used + length <= b->length);
342 memmove(cp, base, length);
343 b->used += length;
346 /* copies length bytes of memory at b to base */
349 unsigned int length)
354 REQUIRE(b->used - b->current >= length);
358 b->current += length;
360 memmove(base, cp, length);