LibD/src/System/Filesystem/EmptyBuffer.h
Rtch90 f182e6749c [Add] I don't want to talk about it.
-- Should be pretty usable now.
2012-09-02 23:57:19 +01:00

18 lines
361 B
C++

#pragma once
#include "InputStream.h"
namespace saracraft {
namespace filesystem {
struct EmptyBuffer: public IInputStreamBuffer {
unsigned char PopByte(void) { return 0; }
bool IsEof(void) const { return true; }
int GetSize(void) const { return 0; }
void PopBytes(char*, int) { }
};
} // Namespace filesystem.
} // Namespace saracraft.