4jcraft/Minecraft.World/Level/Storage/ZoneIO.h
2026-03-10 10:13:58 +11:00

22 lines
335 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();
};