INGOR
Loading...
Searching...
No Matches
ytStdioBuff.h
1/*
2 io/ytStdioBuff.{h,c} : Standard input/output buffer
3 Copyright (C) 2022, Yoshinori Tamada <tamada A T ytlab.jp>
4 All rights reserved.
5
6 See LICENSE.txt for details of the licensing agreement.
7*/
8#ifndef __YTLIB_STDIO_BUFF_H
9#define __YTLIB_STDIO_BUFF_H
10
11#include "util/ytStrBuff.h"
12#include "util/ytArray.h"
13
14typedef struct ytStdioBuff_t {
15 ytStrBuff * buff;
16 ytArray * pos;
17 ytArray * size;
18
19 ytArray * writeBuff;
20 ytArray * writeSize;
21#ifdef _WIN32
22 ytArray * writeTid;
23#endif
25
26extern ytStdioBuff * ytFileBuff_global;
27
28int ytStdioBuff_read();
29size_t ytStdioBuff_size();
30FILE * ytStdioBuff_getRead(size_t index);
31void ytStdioBuff_prepare();
32int ytStdioBuff_ready();
33FILE * ytStdioBuff_getWrite(size_t index);
34void ytStdioBuff_flush();
35int ytStdioBuff_checkOutFile(const char * filename);
36#endif /* __YTLIB_STDIO_BUFF_H */
Expandable array.
Standard input buffer.
Expandable String Buffer.
Definition ytStdioBuff.h:14