/src/duckdb/third_party/brotli/common/platform.cpp
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 <stdlib.h> |
8 | | |
9 | | #include <brotli/types.h> |
10 | | |
11 | | #include "brotli_platform.h" |
12 | | |
13 | | |
14 | | /* Default brotli_alloc_func */ |
15 | 0 | void* duckdb_brotli::BrotliDefaultAllocFunc(void* opaque, size_t size) { |
16 | 0 | BROTLI_UNUSED(opaque); |
17 | 0 | return malloc(size); |
18 | 0 | } |
19 | | |
20 | | /* Default brotli_free_func */ |
21 | 0 | void duckdb_brotli::BrotliDefaultFreeFunc(void* opaque, void* address) { |
22 | 0 | BROTLI_UNUSED(opaque); |
23 | 0 | free(address); |
24 | 0 | } |