Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / tools / sgen / sgen-entry-stream.h
1 /*
2  * sgen-entry-stream.h: EntryStream definitions
3  *
4  * Copyright (C) 2016 Xamarin Inc
5  *
6  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
7  */
8
9 typedef struct {
10         int file;
11         char *buffer;
12         const char *end;
13         const char *pos;
14 } EntryStream;
15
16 void init_stream (EntryStream *stream, int file);
17 void reset_stream (EntryStream *stream);
18 void close_stream (EntryStream *stream);
19 gboolean refill_stream (EntryStream *in, size_t size);
20 ssize_t read_stream (EntryStream *stream, void *out, size_t size);