/
marshal-internals.h
50 lines (37 loc) · 1.13 KB
/
marshal-internals.h
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
46
47
48
49
50
/**
* \file
* Copyright 2016 Microsoft
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
#ifndef __MONO_METADATA_MARSHAL_INTERNALS_H__
#define __MONO_METADATA_MARSHAL_INTERNALS_H__
#include <config.h>
#include <glib.h>
#include <mono/metadata/object-internals.h>
#include <mono/metadata/marshal.h>
MonoObjectHandle
mono_marshal_xdomain_copy_value_handle (MonoObjectHandle val, MonoError *error);
void*
mono_marshal_alloc_co_task_mem (size_t size);
void
mono_marshal_free_co_task_mem (void *ptr);
gpointer
mono_marshal_realloc_co_task_mem (gpointer ptr, size_t size);
void
mono_marshal_free_hglobal (void *ptr);
gpointer
mono_marshal_realloc_hglobal (gpointer ptr, size_t size);
void*
mono_marshal_alloc_hglobal (size_t size);
void*
mono_marshal_alloc_hglobal_error (gsize size, MonoError*);
typedef enum {
TYPECHECK_OBJECT_ARG_POS = 0,
TYPECHECK_CLASS_ARG_POS = 1,
TYPECHECK_CACHE_ARG_POS = 2
} MarshalTypeCheckPositions;
void
mono_marshal_noilgen_init (void);
void
mono_marshal_noilgen_init_blittable (MonoMarshalCallbacks *cb);
#endif /* __MONO_METADATA_MARSHAL_INTERNALS_H__ */