mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-26 02:53:36 +00:00
22 lines
335 B
C++
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();
|
|
};
|