Merge pull request #3528 from BrzVlad/fix-sgen-check-before-collections
[mono.git] / mono / metadata / dynamic-stream-internals.h
1 /* 
2  * Copyright 2016 Microsoft
3  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
4  */
5 #ifndef __MONO_METADATA_DYNAMIC_STREAM_INTERNALS_H__
6 #define __MONO_METADATA_DYNAMIC_STREAM_INTERNALS_H__
7
8 #include <mono/metadata/object.h>
9 #include <mono/metadata/metadata-internals.h>
10
11 void
12 mono_dynstream_init (MonoDynamicStream *stream);
13
14 guint32
15 mono_dynstream_insert_string (MonoDynamicStream *sh, const char *str);
16
17 guint32
18 mono_dynstream_insert_mstring (MonoDynamicStream *sh, MonoString *str, MonoError *error);
19
20 guint32
21 mono_dynstream_add_data (MonoDynamicStream *stream, const char *data, guint32 len);
22
23 guint32
24 mono_dynstream_add_zero (MonoDynamicStream *stream, guint32 len);
25
26 void
27 mono_dynstream_data_align (MonoDynamicStream *stream);
28
29 #endif  /* __MONO_METADATA_DYNAMIC_STREAM_INTERNALS_H__ */
30