18 #ifndef _DECAF_NIO_SHORTBUFFER_H_ 19 #define _DECAF_NIO_SHORTBUFFER_H_ 73 virtual std::string toString()
const;
89 virtual short* array() = 0;
103 virtual int arrayOffset() = 0;
167 virtual short get() = 0;
180 virtual short get(
int index )
const = 0;
227 ShortBuffer&
get(
short* buffer,
int size,
int offset,
int length );
238 virtual bool hasArray()
const = 0;
289 ShortBuffer& put(
const short* buffer,
int size,
int offset,
int length );
334 virtual ShortBuffer& put(
int index,
short value ) = 0;
356 virtual int compareTo(
const ShortBuffer& value )
const;
361 virtual bool equals(
const ShortBuffer& value )
const;
371 virtual bool operator<(
const ShortBuffer& value )
const;
413 static ShortBuffer* wrap(
short* array,
int size,
int offset,
int length );
430 static ShortBuffer* wrap( std::vector<short>& buffer );
A container for data of a specific primitive type.
Definition: Buffer.h:125
virtual ~ShortBuffer()
Definition: ShortBuffer.h:68
This class defines four categories of operations upon short buffers:
Definition: ShortBuffer.h:50
#define DECAF_API
Definition: Config.h:29
bool operator==(const ArrayPointer< T > &left, const U *right)
Definition: ArrayPointer.h:379
This interface imposes a total ordering on the objects of each class that implements it...
Definition: Comparable.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25