Files
4jcraft/minecraft/java/include/java/IntBuffer.h
MatthewBeshay 7ddfaeb59e refactor: remove arrayWithLength, replace with std::vector
Eliminates the custom arrayWithLength<T> wrapper and all typedefs, replacing with std::vector<T> directly.
2026-03-31 12:06:19 +11:00

23 lines
588 B
C++

#pragma once
#include "../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
#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(std::vector<int>* inputArray, unsigned int offset,
unsigned int length);
IntBuffer* put(std::vector<int>& inputArray);
IntBuffer* put(int i);
};