• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "./platform.h"
10 #include <brotli/types.h>
11 
12 /* Default brotli_alloc_func */
BrotliDefaultAllocFunc(void * opaque,size_t size)13 void* BrotliDefaultAllocFunc(void* opaque, size_t size) {
14   BROTLI_UNUSED(opaque);
15   return malloc(size);
16 }
17 
18 /* Default brotli_free_func */
BrotliDefaultFreeFunc(void * opaque,void * address)19 void BrotliDefaultFreeFunc(void* opaque, void* address) {
20   BROTLI_UNUSED(opaque);
21   free(address);
22 }
23