Coverage Report

Created: 2025-08-29 06:47

/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
58.0k
void* BrotliDefaultAllocFunc(void* opaque, size_t size) {
11
58.0k
  BROTLI_UNUSED(opaque);
12
58.0k
  return malloc(size);
13
58.0k
}
14
15
/* Default brotli_free_func */
16
105k
void BrotliDefaultFreeFunc(void* opaque, void* address) {
17
105k
  BROTLI_UNUSED(opaque);
18
105k
  free(address);
19
105k
}