Home | History | Annotate | Download | only in microhttpd

Lines Matching defs:size

36  * Align to 2x word size (as GNU libc does).
59 * Size of the pool.
61 size_t size;
83 * @param max maximum size of the pool
124 pool->size = max;
143 munmap (pool->memory, pool->size);
154 * Allocate size bytes from the pool.
157 * @param size number of bytes to allocate
161 * @return NULL if the pool cannot support size more
166 size_t size, int from_end)
171 asize = ROUND_TO_ALIGN (size);
172 if ( (0 == asize) && (0 != size) )
173 return NULL; /* size too close to SIZE_MAX */
201 * @param old_size the size of the existing block
202 * @param new_size the new size of the block
254 * for @a keep of the given @a size.
258 * @param size how many bytes need to be kept at this address
264 size_t size)
270 memmove (pool->memory, keep, size);
274 pool->end = pool->size;
275 memset (&pool->memory[size],
277 pool->size - size);
279 pool->pos = ROUND_TO_ALIGN(size);