ddnet/src/engine/shared/linereader.h
def 3be8a592e5 Run clang-format
Purely automatic change. In case of conflict with this change, apply the
other change and rerun the formatting to restore it:

$ python scripts/fix_style.py
2020-09-26 21:50:15 +02:00

21 lines
563 B
C++

/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#ifndef ENGINE_SHARED_LINEREADER_H
#define ENGINE_SHARED_LINEREADER_H
#include <base/system.h>
// buffered stream for reading lines, should perhaps be something smaller
class CLineReader
{
char m_aBuffer[4 * 8192];
unsigned m_BufferPos;
unsigned m_BufferSize;
unsigned m_BufferMaxSize;
IOHANDLE m_IO;
public:
void Init(IOHANDLE IoHandle);
char *Get();
};
#endif