mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-22 23:53:51 +00:00
Initial commit
This commit is contained in:
parent
def8cb4153
commit
b691c43c44
19437 changed files with 4363922 additions and 0 deletions
25
Minecraft.World/ConsoleSaveFileOutputStream.h
Normal file
25
Minecraft.World/ConsoleSaveFileOutputStream.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
// 4J Stu - Implements the Java InputStream but rather than writing directly to disc it writes through the save file
|
||||
|
||||
#include "OutputStream.h"
|
||||
|
||||
#include "ConsoleSavePath.h"
|
||||
|
||||
class ConsoleSaveFile;
|
||||
class FileEntry;
|
||||
|
||||
class ConsoleSaveFileOutputStream : public OutputStream
|
||||
{
|
||||
public:
|
||||
ConsoleSaveFileOutputStream(ConsoleSaveFile *saveFile, const ConsoleSavePath &file);
|
||||
ConsoleSaveFileOutputStream(ConsoleSaveFile *saveFile, FileEntry *file);
|
||||
virtual void write(unsigned int b);
|
||||
virtual void write(byteArray b);
|
||||
virtual void write(byteArray b, unsigned int offset, unsigned int length);
|
||||
virtual void close();
|
||||
virtual void flush() {}
|
||||
|
||||
private:
|
||||
ConsoleSaveFile *m_saveFile;
|
||||
FileEntry *m_file;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue