aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/IntBuffer.h
blob: 0d5d304c9013a8c488bfb0532fd21455d798afb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
};