Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
memory.c File Reference
#include "./memory.h"
#include <stdlib.h>
#include <string.h>
#include "../common/platform.h"
#include <brotli/types.h>

Macros

#define MAX_PERM_ALLOCATED   128
 
#define MAX_NEW_ALLOCATED   64
 
#define MAX_NEW_FREED   64
 
#define PERM_ALLOCATED_OFFSET   0
 
#define NEW_ALLOCATED_OFFSET   MAX_PERM_ALLOCATED
 
#define NEW_FREED_OFFSET   (MAX_PERM_ALLOCATED + MAX_NEW_ALLOCATED)
 

Functions

void BrotliInitMemoryManager (MemoryManager *m, brotli_alloc_func alloc_func, brotli_free_func free_func, void *opaque)
 
void * BrotliAllocate (MemoryManager *m, size_t n)
 
void BrotliFree (MemoryManager *m, void *p)
 
void BrotliWipeOutMemoryManager (MemoryManager *m)
 

Macro Definition Documentation

◆ MAX_NEW_ALLOCATED

#define MAX_NEW_ALLOCATED   64

◆ MAX_NEW_FREED

#define MAX_NEW_FREED   64

◆ MAX_PERM_ALLOCATED

#define MAX_PERM_ALLOCATED   128

◆ NEW_ALLOCATED_OFFSET

#define NEW_ALLOCATED_OFFSET   MAX_PERM_ALLOCATED

◆ NEW_FREED_OFFSET

#define NEW_FREED_OFFSET   (MAX_PERM_ALLOCATED + MAX_NEW_ALLOCATED)

◆ PERM_ALLOCATED_OFFSET

#define PERM_ALLOCATED_OFFSET   0

Function Documentation

◆ BrotliAllocate()

void * BrotliAllocate ( MemoryManager * m,
size_t n )

◆ BrotliFree()

void BrotliFree ( MemoryManager * m,
void * p )

◆ BrotliInitMemoryManager()

void BrotliInitMemoryManager ( MemoryManager * m,
brotli_alloc_func alloc_func,
brotli_free_func free_func,
void * opaque )

◆ BrotliWipeOutMemoryManager()

void BrotliWipeOutMemoryManager ( MemoryManager * m)