mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-03 19:04:19 +00:00
Eliminates the custom arrayWithLength<T> wrapper and all typedefs, replacing with std::vector<T> directly.
25 lines
626 B
C++
25 lines
626 B
C++
#pragma once
|
|
// 4J Stu - Represents Java standard lib abstract
|
|
|
|
#include <cstdio>
|
|
|
|
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
|
|
|
|
#include "OutputStream.h"
|
|
|
|
class File;
|
|
|
|
class FileOutputStream : public OutputStream {
|
|
public:
|
|
FileOutputStream(const File& file);
|
|
virtual ~FileOutputStream();
|
|
virtual void write(unsigned int b);
|
|
virtual void write(const std::vector<uint8_t>& b);
|
|
virtual void write(const std::vector<uint8_t>& b, unsigned int offset, unsigned int length);
|
|
virtual void close();
|
|
virtual void flush();
|
|
|
|
private:
|
|
std::FILE* m_fileHandle;
|
|
};
|