open62541 1.4.15
Open source implementation of OPC UA
Loading...
Searching...
No Matches
CharAllocator.h
Go to the documentation of this file.
1/** This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 *
5 * Copyright 2020 (c) Matthias Konnerth
6 */
7
8#ifndef CHARALLOCATOR_H
9#define CHARALLOCATOR_H
10#include <stddef.h>
11
14
16char *CharArenaAllocator_malloc(struct CharArenaAllocator *arena, size_t size);
17char *CharArenaAllocator_realloc(struct CharArenaAllocator *arena, size_t size);
19
20#endif
struct CharArenaAllocator CharArenaAllocator
CharArenaAllocator * CharArenaAllocator_new(size_t initialSize)
char * CharArenaAllocator_realloc(struct CharArenaAllocator *arena, size_t size)
char * CharArenaAllocator_malloc(struct CharArenaAllocator *arena, size_t size)
void CharArenaAllocator_delete(struct CharArenaAllocator *arena)