29 lines
630 B
C
29 lines
630 B
C
//
|
|
// Created by zemon on 14.07.2022.
|
|
//
|
|
|
|
#ifndef PDM_FIR_TEST_simple_indelible_MALOCK_H
|
|
#define PDM_FIR_TEST_simple_indelible_MALOCK_H
|
|
|
|
#include "stdlib.h"
|
|
#include "stdbool.h"
|
|
#include "stdint.h"
|
|
#include "MemoryAllocationInterface.h"
|
|
|
|
|
|
typedef struct {
|
|
uint8_t *buffer;
|
|
size_t size;
|
|
size_t used;
|
|
} tSimpleIndelibleMalloc;
|
|
|
|
|
|
void SimpleIndelibleMalloc_Init(tSimpleIndelibleMalloc *env, uint8_t *buffer, size_t size);
|
|
|
|
void SimpleIndelibleMalloc_Clear(tSimpleIndelibleMalloc *env);
|
|
|
|
tMemAllocInterface SimpleIndelibleMalloc_GetInterface(tSimpleIndelibleMalloc *env);
|
|
|
|
|
|
#endif //PDM_FIR_TEST_simple_indelible_MALOCK_H
|