/src/brotli/c/common/platform.c
Line | Count | Source |
1 | | /* Copyright 2016 Google Inc. All Rights Reserved. |
2 | | |
3 | | Distributed under MIT license. |
4 | | See file LICENSE for detail or copy at https://opensource.org/licenses/MIT |
5 | | */ |
6 | | |
7 | | #include "platform.h" |
8 | | |
9 | | /* Default brotli_alloc_func */ |
10 | 86.9k | void* BrotliDefaultAllocFunc(void* opaque, size_t size) { |
11 | 86.9k | BROTLI_UNUSED(opaque); |
12 | 86.9k | return malloc(size); |
13 | 86.9k | } |
14 | | |
15 | | /* Default brotli_free_func */ |
16 | 169k | void BrotliDefaultFreeFunc(void* opaque, void* address) { |
17 | 169k | BROTLI_UNUSED(opaque); |
18 | 169k | free(address); |
19 | 169k | } |