|
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
buffer.c
Go to the documentation of this file.
21 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
131 SCIPdebugMessage("allocated buffer %d/%d at %p of size %d (required size: %d) for pointer %p\n",
185 * Usually, buffers are allocated and freed like a stack, such that the currently used pointer is
210 SCIPdebugMessage("reallocated buffer %d/%d at %p to size %d (required size: %d) for pointer %p\n",
243 /** allocates the next unused buffer and copies the given memory into the buffer; checks for integer overflows */
259 SCIP_CALL( SCIPbufferDuplicateMem((set)->buffer, set, (void**)(ptr), source, (int)(num*elemsize)) );
319 bufnum, buffer->ndata, buffer->data[bufnum], buffer->size[bufnum], (void*)ptr, buffer->firstfree);
349 printf("[%c] %8d bytes at %p\n", buffer->used[i] ? '*' : ' ', buffer->size[i], buffer->data[i]);
SCIP_RETCODE SCIPbufferAllocMem(SCIP_BUFFER *buffer, SCIP_SET *set, void **ptr, int size) Definition: buffer.c:73 Definition: struct_set.h:55 internal methods for memory buffers for temporary objects SCIP_RETCODE SCIPbufferAllocMemSave(SCIP_SET *set, void **ptr, int num, size_t elemsize) Definition: buffer.c:224 Definition: type_retcode.h:33 internal methods for global SCIP settings void SCIPbufferFreeMem(SCIP_BUFFER *buffer, void **ptr, int dummysize) Definition: buffer.c:286 SCIP_RETCODE SCIPbufferDuplicateMem(SCIP_BUFFER *buffer, SCIP_SET *set, void **ptr, const void *source, int size) Definition: buffer.c:142 SCIP_RETCODE SCIPbufferDuplicateMemSave(SCIP_SET *set, void **ptr, const void *source, int num, size_t elemsize) Definition: buffer.c:244 SCIP_RETCODE SCIPbufferReallocMem(SCIP_BUFFER *buffer, SCIP_SET *set, void **ptr, int size) Definition: buffer.c:163 public methods for message output datastructures for memory buffers for temporary objects Definition: struct_buffer.h:36 Definition: type_retcode.h:35 common defines and data types used in all packages of SCIP SCIP_RETCODE SCIPbufferReallocMemSave(SCIP_SET *set, void **ptr, int num, size_t elemsize) Definition: buffer.c:265 memory allocation routines |