mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-21 16:55:32 +00:00
Eliminates the custom arrayWithLength<T> wrapper and all typedefs, replacing with std::vector<T> directly.
26 lines
620 B
C++
26 lines
620 B
C++
#pragma once
|
|
// 4J Stu - Represents Java standard library class
|
|
|
|
#include <cstdio>
|
|
#include <cstdint>
|
|
|
|
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
|
|
|
|
#include "InputStream.h"
|
|
|
|
class File;
|
|
|
|
class FileInputStream : public InputStream {
|
|
public:
|
|
FileInputStream(const File& file);
|
|
virtual ~FileInputStream();
|
|
virtual int read();
|
|
virtual int read(std::vector<uint8_t>& b);
|
|
virtual int read(std::vector<uint8_t>& b, unsigned int offset, unsigned int length);
|
|
virtual void close();
|
|
virtual int64_t skip(int64_t n);
|
|
|
|
private:
|
|
std::FILE* m_fileHandle;
|
|
};
|