Cross Reference: platform.c
xref: /xsrc/external/mit/brotli/dist/c/common/platform.c
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /xsrc/external/mit/brotli/dist/c/common/
126fa459cSmrg/* Copyright 2016 Google Inc. All Rights Reserved.
226fa459cSmrg
326fa459cSmrg   Distributed under MIT license.
426fa459cSmrg   See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
526fa459cSmrg*/
626fa459cSmrg
726fa459cSmrg#include <stdlib.h>
826fa459cSmrg
926fa459cSmrg#include "./platform.h"
1026fa459cSmrg#include <brotli/types.h>
1126fa459cSmrg
1226fa459cSmrg/* Default brotli_alloc_func */
1326fa459cSmrgvoid* BrotliDefaultAllocFunc(void* opaque, size_t size) {
1426fa459cSmrg  BROTLI_UNUSED(opaque);
1526fa459cSmrg  return malloc(size);
1626fa459cSmrg}
1726fa459cSmrg
1826fa459cSmrg/* Default brotli_free_func */
1926fa459cSmrgvoid BrotliDefaultFreeFunc(void* opaque, void* address) {
2026fa459cSmrg  BROTLI_UNUSED(opaque);
2126fa459cSmrg  free(address);
2226fa459cSmrg}
23

Indexes created Sun Nov 30 02:09:33 GMT 2025