mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-28 14:25:34 +00:00
Eliminates the custom arrayWithLength<T> wrapper and all typedefs, replacing with std::vector<T> directly.
23 lines
588 B
C++
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);
|
|
}; |