[mini] Use C++ linker iff building C++ that needs the C++ runtime (#12266)
[mono-project.git] / mono / metadata / dynamic-stream-internals.h
blob295019f4e2cc782dc4a3c0c9f4694fca0610bdc7
1 /**
2 * \file
3 * Copyright 2016 Microsoft
4 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
5 */
6 #ifndef __MONO_METADATA_DYNAMIC_STREAM_INTERNALS_H__
7 #define __MONO_METADATA_DYNAMIC_STREAM_INTERNALS_H__
9 #include <mono/metadata/object.h>
10 #include <mono/metadata/metadata-internals.h>
12 void
13 mono_dynstream_init (MonoDynamicStream *stream);
15 guint32
16 mono_dynstream_insert_string (MonoDynamicStream *sh, const char *str);
18 guint32
19 mono_dynstream_insert_mstring (MonoDynamicStream *sh, MonoString *str, MonoError *error);
21 guint32
22 mono_dynstream_add_data (MonoDynamicStream *stream, gconstpointer data, guint32 len);
24 guint32
25 mono_dynstream_add_zero (MonoDynamicStream *stream, guint32 len);
27 void
28 mono_dynstream_data_align (MonoDynamicStream *stream);
30 #endif /* __MONO_METADATA_DYNAMIC_STREAM_INTERNALS_H__ */