eaarl-io
1.0.1+71abbd4
EAARL Input/Output Library (Public API)
library
public
eaarlio
memory.h
Go to the documentation of this file.
1
#ifndef EAARLIO_MEMORY_H
2
#define EAARLIO_MEMORY_H
3
17
#include <stddef.h>
18
41
struct
eaarlio_memory
{
54
void
*(*malloc)(
struct
eaarlio_memory
*
self
,
size_t
size);
64
void (*
free
)(
struct
eaarlio_memory
*
self
,
void
*ptr);
65
79
void
*(*realloc)(
struct
eaarlio_memory
*
self
,
void
*ptr,
size_t
size);
80
94
void
*(*calloc)(
struct
eaarlio_memory
*
self
,
size_t
nmemb,
size_t
size);
95
102
void
*
opaque
;
103
};
104
110
#define eaarlio_memory_empty() \
111
(struct eaarlio_memory) \
112
{ \
113
NULL, NULL, NULL, NULL, NULL \
114
}
115
116
#endif
eaarlio_memory::free
void(* free)(struct eaarlio_memory *self, void *ptr)
Releases the specified block of memory back to the system.
Definition:
memory.h:64
eaarlio_memory
Memory handler structure.
Definition:
memory.h:41
eaarlio_memory::opaque
void * opaque
Internal opaque pointer.
Definition:
memory.h:102
Generated by
1.8.13