18#ifndef _DECAF_NIO_LONGBUFFER_H_
19#define _DECAF_NIO_LONGBUFFER_H_
167 virtual long long get() = 0;
180 virtual long long get(
int index )
const = 0;
289 LongBuffer&
put(
const long long* buffer,
int size,
int offset,
int length );
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 long long get(int index) const =0
Absolute get method.
virtual long long get()=0
Relative get method.
virtual bool operator==(const LongBuffer &value) const
LongBuffer(int capacity)
Creates a LongBuffer object that has its backing array allocated long longernally and is then owned a...
LongBuffer & put(LongBuffer &src)
This method transfers the long longs remaining in the given source buffer long longo this buffer.
virtual bool equals(const LongBuffer &value) const
LongBuffer & get(std::vector< long long > buffer)
Relative bulk get method.
static LongBuffer * allocate(int capacity)
Allocates a new Double buffer.
virtual int compareTo(const LongBuffer &value) const
LongBuffer & put(std::vector< long long > &buffer)
This method transfers the entire content of the given source long longs array long longo this buffer.
static LongBuffer * wrap(long long *array, int size, int offset, int length)
Wraps the passed buffer with a new LongBuffer.
virtual LongBuffer * slice() const =0
Creates a new LongBuffer whose content is a shared subsequence of this buffer's content.
virtual bool hasArray() const =0
Tells whether or not this buffer is backed by an accessible long long array.
virtual long long * array()=0
Returns the long long array that backs this buffer (optional operation).
virtual LongBuffer & put(long long value)=0
Writes the given long longs long longo this buffer at the current position, and then increments the p...
virtual bool operator<(const LongBuffer &value) const
virtual ~LongBuffer()
Definition LongBuffer.h:68
virtual LongBuffer & put(int index, long long value)=0
Writes the given long longs long longo this buffer at the given index.
LongBuffer & get(long long *buffer, int size, int offset, int length)
Relative bulk get method.
virtual std::string toString() const
virtual LongBuffer * asReadOnlyBuffer() const =0
Creates a new, read-only long long buffer that shares this buffer's content.
static LongBuffer * wrap(std::vector< long long > &buffer)
Wraps the passed STL long long Vector in a LongBuffer.
virtual LongBuffer * duplicate()=0
Creates a new long long buffer that shares this buffer's content.
virtual int arrayOffset()=0
Returns the offset within this buffer's backing array of the first element of the buffer (optional op...
virtual LongBuffer & compact()=0
Compacts this buffer.
LongBuffer & put(const long long *buffer, int size, int offset, int length)
This method transfers long longs long longo this buffer from the given source array.
#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