mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
18 lines
368 B
C++
18 lines
368 B
C++
#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*1024];
|
|
unsigned m_BufferPos;
|
|
unsigned m_BufferSize;
|
|
unsigned m_BufferMaxSize;
|
|
IOHANDLE m_IO;
|
|
public:
|
|
void Init(IOHANDLE IoHandle);
|
|
char *Get();
|
|
};
|
|
#endif
|