18#ifndef _DECAF_INTERNAL_NIO_LONGARRAYBUFFER_H_
19#define _DECAF_INTERNAL_NIO_LONGARRAYBUFFER_H_
35 using decaf::internal::util::ByteArrayAdapter;
106 bool readOnly =
false );
155 virtual long long get(
int index )
const;
166 return this->readOnly;
193 this->readOnly = value;
virtual LongBuffer * duplicate()
Creates a new long long buffer that shares this buffer's content.The content of the new buffer will b...
virtual void setReadOnly(bool value)
Sets this LongArrayBuffer as Read-Only.
Definition LongArrayBuffer.h:192
virtual LongBuffer & put(int index, long long value)
Writes the given long longs long longo this buffer at the given index.a reference to this buffer.
virtual LongBuffer * asReadOnlyBuffer() const
Creates a new, read-only long long buffer that shares this buffer's content.The content of the new bu...
virtual long long * array()
Returns the long long array that backs this buffer (optional operation).Modifications to this buffer'...
LongArrayBuffer(int size, bool readOnly=false)
Creates a IntArrayBuffer object that has its backing array allocated internally and is then owned and...
virtual int arrayOffset()
Returns the offset within this buffer's backing array of the first element of the buffer (optional op...
virtual ~LongArrayBuffer()
LongArrayBuffer(const decaf::lang::Pointer< ByteArrayAdapter > &array, int offset, int length, bool readOnly=false)
Creates a byte buffer that wraps the passed ByteArrayAdapter and start at the given offset.
virtual bool hasArray() const
Tells whether or not this buffer is backed by an accessible long long array.If this method returns tr...
Definition LongArrayBuffer.h:160
virtual LongBuffer * slice() const
Creates a new LongBuffer whose content is a shared subsequence of this buffer's content....
virtual LongBuffer & put(long long value)
Writes the given long longs long longo this buffer at the current position, and then increments the p...
virtual long long get(int index) const
Absolute get method.Reads the value at the given index.the long long that is located at the given ind...
LongArrayBuffer(const LongArrayBuffer &other)
Create a LongArrayBuffer that mirrors this one, meaning it shares a reference to this buffers ByteArr...
virtual bool isReadOnly() const
Tells whether or not this buffer is read-only.true if, and only if, this buffer is read-only.
Definition LongArrayBuffer.h:165
LongArrayBuffer(long long *array, int size, int offset, int length, bool readOnly=false)
Creates a LongArrayBuffer object that wraps the given array.
virtual LongBuffer & compact()
Compacts this buffer.The bytes between the buffer's current position and its limit,...
virtual long long get()
Relative get method.Reads the value at this buffer's current position, and then increments the positi...
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
This class defines four categories of operations upon long long buffers:
Definition LongBuffer.h:51
LongBuffer(int capacity)
Creates a LongBuffer object that has its backing array allocated long longernally and is then owned a...
#define DECAF_API
Definition Config.h:29
Definition BufferFactory.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25