apr_allocator.h (302408) | apr_allocator.h (362181) |
---|---|
1/* Licensed to the Apache Software Foundation (ASF) under one or more 2 * contributor license agreements. See the NOTICE file distributed with 3 * this work for additional information regarding copyright ownership. 4 * The ASF licenses this file to You under the Apache License, Version 2.0 5 * (the "License"); you may not use this file except in compliance with 6 * the License. You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 --- 89 unchanged lines hidden (view full) --- 98 * The list is typically terminated by a memnode with its next field 99 * set to NULL. 100 * @param allocator The allocator to give the mem back to 101 * @param memnode The memory node to return 102 */ 103APR_DECLARE(void) apr_allocator_free(apr_allocator_t *allocator, 104 apr_memnode_t *memnode) 105 __attribute__((nonnull(1,2))); | 1/* Licensed to the Apache Software Foundation (ASF) under one or more 2 * contributor license agreements. See the NOTICE file distributed with 3 * this work for additional information regarding copyright ownership. 4 * The ASF licenses this file to You under the Apache License, Version 2.0 5 * (the "License"); you may not use this file except in compliance with 6 * the License. You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 --- 89 unchanged lines hidden (view full) --- 98 * The list is typically terminated by a memnode with its next field 99 * set to NULL. 100 * @param allocator The allocator to give the mem back to 101 * @param memnode The memory node to return 102 */ 103APR_DECLARE(void) apr_allocator_free(apr_allocator_t *allocator, 104 apr_memnode_t *memnode) 105 __attribute__((nonnull(1,2))); |
106 107/** 108 * Get the true size that would be allocated for the given size (including 109 * the header and alignment). 110 * @param allocator The allocator from which to the memory would be allocated 111 * @param size The size to align 112 * @return The aligned size (or zero on apr_size_t overflow) 113 */ 114APR_DECLARE(apr_size_t) apr_allocator_align(apr_allocator_t *allocator, 115 apr_size_t size); |
|
106 107#include "apr_pools.h" 108 109/** 110 * Set the owner of the allocator 111 * @param allocator The allocator to set the owner for 112 * @param pool The pool that is to own the allocator 113 * @remark Typically pool is the highest level pool using the allocator --- 56 unchanged lines hidden --- | 116 117#include "apr_pools.h" 118 119/** 120 * Set the owner of the allocator 121 * @param allocator The allocator to set the owner for 122 * @param pool The pool that is to own the allocator 123 * @remark Typically pool is the highest level pool using the allocator --- 56 unchanged lines hidden --- |