4jcraft/targets/minecraft/world/level/chunk/storage/ZoneIo.h
2026-04-01 13:27:58 -05:00

21 lines
349 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(std::vector<uint8_t> bb, int size);
void write(ByteBuffer* bb, int size);
ByteBuffer* read(int size);
void flush();
};