suricata
|
Go to the source code of this file.
Macros | |
#define | MAX_LIMIT 10485760 |
Functions | |
MemBuffer * | MemBufferCreateNew (uint32_t size) |
int | MemBufferExpand (MemBuffer **buffer, uint32_t expand_by) |
expand membuffer by size of 'expand_by' More... | |
void | MemBufferFree (MemBuffer *buffer) |
Definition in file util-buffer.c.
#define MAX_LIMIT 10485760 |
Definition at line 31 of file util-buffer.c.
MemBuffer* MemBufferCreateNew | ( | uint32_t | size | ) |
Definition at line 32 of file util-buffer.c.
References MAX_LIMIT, SC_EINVAL, SC_ENOMEM, sc_errno, SC_OK, SCLogWarning, SCMalloc, and unlikely.
Referenced by CreateEveThreadCtx(), JsonLogThreadInit(), LogHttpLogThreadInit(), LogStatsLogThreadInit(), and LogTcpDataLogThreadInit().
int MemBufferExpand | ( | MemBuffer ** | buffer, |
uint32_t | expand_by | ||
) |
expand membuffer by size of 'expand_by'
If expansion failed, buffer will still be valid.
result | 0 ok, -1 expansion failed |
Definition at line 64 of file util-buffer.c.
References MAX_LIMIT, SCLogDebug, SCLogWarning, SCRealloc, MemBuffer_::size, and unlikely.
Referenced by OutputJsonBuilderBuffer(), and OutputJSONMemBufferCallback().
void MemBufferFree | ( | MemBuffer * | buffer | ) |
Definition at line 87 of file util-buffer.c.
References SCFree.
Referenced by CreateEveThreadCtx(), FreeEveThreadCtx(), JsonLogThreadInit(), LogHttpLogThreadDeinit(), LogStatsLogThreadDeinit(), and LogTcpDataLogThreadDeinit().