mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 13:53:37 +00:00
21 lines
338 B
C++
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();
|
|
};
|