From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.World/IntBuffer.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Minecraft.World/IntBuffer.h (limited to 'Minecraft.World/IntBuffer.h') diff --git a/Minecraft.World/IntBuffer.h b/Minecraft.World/IntBuffer.h new file mode 100644 index 00000000..0d5d304c --- /dev/null +++ b/Minecraft.World/IntBuffer.h @@ -0,0 +1,21 @@ +#pragma once + +#include "Buffer.h" + +class IntBuffer : public Buffer +{ +private: + int *buffer; + +public: + IntBuffer(unsigned int capacity); + IntBuffer( unsigned int capacity, int *backingArray ); + virtual ~IntBuffer(); + + virtual IntBuffer *flip(); + int get(unsigned int index); + int *getBuffer(); + IntBuffer *put(intArray *inputArray, unsigned int offset, unsigned int length); + IntBuffer *put(intArray inputArray); + IntBuffer *put(int i); +}; \ No newline at end of file -- cgit v1.2.3