#include <string.h>
#include <brotli/types.h>
#include "../common/platform.h"
Go to the source code of this file.
|
#define | BROTLI_ENCODER_EXIT_ON_OOM |
|
#define | BROTLI_ENCODER_MEMORY_MANAGER_SLOTS 0 |
|
#define | BROTLI_ALLOC(M, T, N) |
|
#define | BROTLI_FREE(M, P) |
|
#define | BROTLI_IS_OOM(M) |
|
#define | BROTLI_IS_NULL(A) |
|
#define | BROTLI_ENSURE_CAPACITY(M, T, A, C, R) |
|
#define | BROTLI_ENSURE_CAPACITY_APPEND(M, T, A, C, S, V) |
|
◆ BROTLI_ALLOC
#define BROTLI_ALLOC |
( |
| M, |
|
|
| T, |
|
|
| N ) |
Value:
BROTLI_INTERNAL void * BrotliAllocate(MemoryManager *m, size_t n)
Definition memory.c:52
#define NULL
Definition getopt1.c:37
◆ BROTLI_ENCODER_EXIT_ON_OOM
#define BROTLI_ENCODER_EXIT_ON_OOM |
◆ BROTLI_ENCODER_MEMORY_MANAGER_SLOTS
#define BROTLI_ENCODER_MEMORY_MANAGER_SLOTS 0 |
◆ BROTLI_ENSURE_CAPACITY
#define BROTLI_ENSURE_CAPACITY |
( |
| M, |
|
|
| T, |
|
|
| A, |
|
|
| C, |
|
|
| R ) |
Value: { \
size_t _new_size = (
C == 0) ? (
R) :
C; \
T* new_array; \
while (_new_size < (
R)) _new_size *= 2; \
memcpy(new_array,
A,
C *
sizeof(T)); \
} \
}
#define R(a)
Definition 7zCrcOpt.c:41
#define BROTLI_ALLOC(M, T, N)
Definition memory.h:44
#define BROTLI_IS_OOM(M)
Definition memory.h:54
#define BROTLI_IS_NULL(A)
Definition memory.h:68
#define A(x)
Definition crc_macros.h:23
#define C(x)
Definition crc_macros.h:25
◆ BROTLI_ENSURE_CAPACITY_APPEND
#define BROTLI_ENSURE_CAPACITY_APPEND |
( |
| M, |
|
|
| T, |
|
|
| A, |
|
|
| C, |
|
|
| S, |
|
|
| V ) |
Value: { \
BROTLI_ENSURE_CAPACITY(M, T,
A,
C,
S); \
}
◆ BROTLI_FREE
#define BROTLI_FREE |
( |
| M, |
|
|
| P ) |
Value: { \
}
#define P(a, b, c, d, k, s, t)
◆ BROTLI_IS_NULL
#define BROTLI_IS_NULL |
( |
| A | ) |
|
◆ BROTLI_IS_OOM
#define BROTLI_IS_OOM |
( |
| M | ) |
|
◆ MemoryManager
typedef struct MemoryManager MemoryManager |
◆ BrotliAllocate()
◆ BrotliBootstrapAlloc()
◆ BrotliBootstrapFree()
◆ BrotliFree()
◆ BrotliInitMemoryManager()
◆ BrotliWipeOutMemoryManager()