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