18#ifndef _DECAF_NIO_INTBUFFER_H_
19#define _DECAF_NIO_INTBUFFER_H_
180 virtual int get(
int index )
const = 0;
This interface imposes a total ordering on the objects of each class that implements it.
Definition Comparable.h:33
virtual int capacity() const
Definition Buffer.h:145
virtual IntBuffer * asReadOnlyBuffer() const =0
Creates a new, read-only int buffer that shares this buffer's content.
virtual bool equals(const IntBuffer &value) const
IntBuffer & get(std::vector< int > buffer)
Relative bulk get method.
virtual ~IntBuffer()
Definition IntBuffer.h:68
virtual IntBuffer * slice() const =0
Creates a new IntBuffer whose content is a shared subsequence of this buffer's content.
virtual IntBuffer & compact()=0
Compacts this buffer.
virtual int arrayOffset()=0
Returns the offset within this buffer's backing array of the first element of the buffer (optional op...
IntBuffer & put(std::vector< int > &buffer)
This method transfers the entire content of the given source ints array into this buffer.
virtual int * array()=0
Returns the int array that backs this buffer (optional operation).
static IntBuffer * wrap(std::vector< int > &buffer)
Wraps the passed STL int Vector in a IntBuffer.
IntBuffer & put(const int *buffer, int size, int offset, int length)
This method transfers ints into this buffer from the given source array.
virtual IntBuffer & put(int index, int value)=0
Writes the given ints into this buffer at the given index.
static IntBuffer * allocate(int capacity)
Allocates a new Double buffer.
IntBuffer(int capacity)
Creates a IntBuffer object that has its backing array allocated internally and is then owned and dele...
virtual int compareTo(const IntBuffer &value) const
IntBuffer & get(int *buffer, int size, int offset, int length)
Relative bulk get method.
static IntBuffer * wrap(int *array, int size, int offset, int length)
Wraps the passed buffer with a new IntBuffer.
virtual std::string toString() const
virtual IntBuffer * duplicate()=0
Creates a new int buffer that shares this buffer's content.
virtual bool hasArray() const =0
Tells whether or not this buffer is backed by an accessible int array.
virtual int get()=0
Relative get method.
virtual IntBuffer & put(int value)=0
Writes the given integer into this buffer at the current position, and then increments the position.
virtual bool operator<(const IntBuffer &value) const
virtual int get(int index) const =0
Absolute get method.
IntBuffer & put(IntBuffer &src)
This method transfers the ints remaining in the given source buffer into this buffer.
virtual bool operator==(const IntBuffer &value) const
#define DECAF_API
Definition Config.h:29
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25