18 #ifndef _DECAF_NIO_INTBUFFER_H_ 19 #define _DECAF_NIO_INTBUFFER_H_ 73 virtual std::string toString()
const;
89 virtual int* array() = 0;
103 virtual int arrayOffset() = 0;
122 virtual IntBuffer* asReadOnlyBuffer()
const = 0;
167 virtual int get() = 0;
180 virtual int get(
int index )
const = 0;
196 IntBuffer&
get( std::vector<int> buffer );
227 IntBuffer&
get(
int* buffer,
int size,
int offset,
int length );
238 virtual bool hasArray()
const = 0;
289 IntBuffer& put(
const int* buffer,
int size,
int offset,
int length );
303 IntBuffer& put( std::vector<int>& buffer );
334 virtual IntBuffer& put(
int index,
int value ) = 0;
356 virtual int compareTo(
const IntBuffer& value )
const;
361 virtual bool equals(
const IntBuffer& value )
const;
371 virtual bool operator<(
const IntBuffer& value )
const;
387 static IntBuffer* allocate(
int capacity );
413 static IntBuffer* wrap(
int* array,
int size,
int offset,
int length );
430 static IntBuffer* wrap( std::vector<int>& buffer );
A container for data of a specific primitive type.
Definition: Buffer.h:125
virtual ~IntBuffer()
Definition: IntBuffer.h:68
#define DECAF_API
Definition: Config.h:29
bool operator==(const ArrayPointer< T > &left, const U *right)
Definition: ArrayPointer.h:379
This interface imposes a total ordering on the objects of each class that implements it...
Definition: Comparable.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25
This class defines four categories of operations upon int buffers:
Definition: IntBuffer.h:50