18 #ifndef _DECAF_INTERNAL_NIO_DOUBLEARRAYBUFFER_H_ 19 #define _DECAF_INTERNAL_NIO_DOUBLEARRAYBUFFER_H_ 86 DoubleArrayBuffer(
double* array,
int size,
int offset,
int length,
bool readOnly =
false );
106 int offset,
int length,
bool readOnly =
false );
125 virtual double* array();
130 virtual int arrayOffset();
135 virtual DoubleBuffer* asReadOnlyBuffer()
const;
140 virtual DoubleBuffer& compact();
145 virtual DoubleBuffer* duplicate();
150 virtual double get();
155 virtual double get(
int index )
const;
166 return this->readOnly;
172 virtual DoubleBuffer& put(
double value );
177 virtual DoubleBuffer& put(
int index,
double value );
182 virtual DoubleBuffer* slice()
const;
193 this->readOnly = value;
Definition: DoubleArrayBuffer.h:37
virtual void setReadOnly(bool value)
Sets this DoubleArrayBuffer as Read-Only or not Read-Only.
Definition: DoubleArrayBuffer.h:192
This class adapts primitive type arrays to a base byte array so that the classes can inter-operate on...
Definition: ByteArrayAdapter.h:43
This class defines four categories of operations upon double buffers:
Definition: DoubleBuffer.h:52
virtual bool isReadOnly() const
Tells whether or not this buffer is read-only.true if, and only if, this buffer is read-only...
Definition: DoubleArrayBuffer.h:165
#define DECAF_API
Definition: Config.h:29
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
virtual bool hasArray() const
Tells whether or not this buffer is backed by an accessible double array.If this method returns true ...
Definition: DoubleArrayBuffer.h:160
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25