4jcraft/Minecraft.World/Level/Storage/ZoneIO.h
2026-03-13 17:06:56 -05:00

21 lines
338 B
C++

#pragma once
#include <cstdio>
#include "ZonedChunkStorage.h"
class ByteBuffer;
class ZoneIo {
private:
std::FILE* channel;
__int64 pos;
public:
ZoneIo(std::FILE* channel, __int64 pos);
void write(byteArray bb, int size);
void write(ByteBuffer* bb, int size);
ByteBuffer* read(int size);
void flush();
};