Go to the documentation of this file.
18 #ifndef _DECAF_INTERNAL_UTIL_BYTEARRAYADAPTER_H_
19 #define _DECAF_INTERNAL_UTIL_BYTEARRAYADAPTER_H_
216 return this->size / (int)
sizeof(
double);
224 return this->size / (int)
sizeof(
float);
232 return this->size / (int)
sizeof(
long long);
240 return this->size / (int)
sizeof(
int);
248 return this->size / (int)
sizeof(
short);
257 return this->array.bytes;
266 return this->array.chars;
275 return this->array.shorts;
284 return this->array.ints;
293 return this->array.longs;
302 return this->array.doubles;
311 return this->array.floats;
333 virtual void read(
unsigned char* buffer,
int size,
int offset,
int length)
const;
355 virtual void write(
unsigned char* buffer,
int size,
int offset,
int length);
372 virtual void resize(
int size);
377 virtual void clear();
390 unsigned char& operator[](
int index);
391 const unsigned char& operator[](
int index)
const;
404 virtual unsigned char get(
int index)
const;
417 virtual char getChar(
int index)
const;
433 virtual double getDouble(
int index)
const;
446 virtual double getDoubleAt(
int index)
const;
462 virtual float getFloat(
int index)
const;
475 virtual float getFloatAt(
int index)
const;
491 virtual long long getLong(
int index)
const;
504 virtual long long getLongAt(
int index)
const;
520 virtual int getInt(
int index)
const;
533 virtual int getIntAt(
int index)
const;
549 virtual short getShort(
int index)
const;
562 virtual short getShortAt(
int index)
const;
772 void initialize(
unsigned char* buffer,
int size,
bool own);