4jcraft/Minecraft.World/Level/Storage/ZoneIO.h
2026-03-21 17:07:51 -05:00

21 lines
338 B
C++

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