18 #ifndef _DECAF_INTERNAL_NIO_FLOATARRAYBUFFER_H_
19 #define _DECAF_INTERNAL_NIO_FLOATARRAYBUFFER_H_
86 FloatArrayBuffer(
float* array,
int size,
int offset,
int length,
bool readOnly =
false);
106 bool readOnly =
false);
125 virtual float* array();
130 virtual int arrayOffset();
135 virtual FloatBuffer* asReadOnlyBuffer()
const;
140 virtual FloatBuffer& compact();
145 virtual FloatBuffer* duplicate();
155 virtual float get(
int index)
const;
168 return this->readOnly;
174 virtual FloatBuffer& put(
float value);
179 virtual FloatBuffer& put(
int index,
float value);
184 virtual FloatBuffer* slice()
const;
195 this->readOnly = value;
This class defines four categories of operations upon float buffers:
Definition: FloatBuffer.h:50
virtual bool hasArray() const
Tells whether or not this buffer is backed by an accessible float array.If this method returns true t...
Definition: FloatArrayBuffer.h:160
Definition: FloatArrayBuffer.h:37
virtual bool isReadOnly() const
Tells whether or not this buffer is read-only.true if, and only if, this buffer is read-only...
Definition: FloatArrayBuffer.h:167
This class adapts primitive type arrays to a base byte array so that the classes can inter-operate on...
Definition: ByteArrayAdapter.h:43
#define DECAF_API
Definition: Config.h:29
virtual void setReadOnly(bool value)
Sets this FloatArrayBuffer as Read-Only.
Definition: FloatArrayBuffer.h:194
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition: Pointer.h:53