Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 45 lines (29 sloc) 0.945 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
#ifndef _MONO_MEMPOOL_H_
#define _MONO_MEMPOOL_H_

#include <mono/utils/mono-publib.h>

MONO_BEGIN_DECLS

typedef struct _MonoMemPool MonoMemPool;

MONO_API MonoMemPool *
mono_mempool_new (void);

MONO_API MonoMemPool *
mono_mempool_new_size (int initial_size);

MONO_API void
mono_mempool_destroy (MonoMemPool *pool);

MONO_API void
mono_mempool_invalidate (MonoMemPool *pool);

MONO_API void
mono_mempool_empty (MonoMemPool *pool);

MONO_API void
mono_mempool_stats (MonoMemPool *pool);

MONO_API void*
mono_mempool_alloc (MonoMemPool *pool, unsigned int size);

MONO_API void*
mono_mempool_alloc0 (MonoMemPool *pool, unsigned int size);

MONO_API mono_bool
mono_mempool_contains_addr (MonoMemPool *pool, void* addr);

MONO_API char*
mono_mempool_strdup (MonoMemPool *pool, const char *s);

MONO_API uint32_t
mono_mempool_get_allocated (MonoMemPool *pool);

MONO_END_DECLS

#endif
Something went wrong with that request. Please try again.