lightspark::ByteArray Class Reference

#include <flashutils.h>

Inherits lightspark::ASObject.

Inherited by lightspark::DefineBinaryDataTag.

Collaboration diagram for lightspark::ByteArray:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ByteArray ()
 ~ByteArray ()
 ASFUNCTION (_getBytesAvailable)
 ASFUNCTION (_getLength)
 ASFUNCTION (_getPosition)
 ASFUNCTION (_setPosition)
 ASFUNCTION (readBytes)
void acquireBuffer (uint8_t *buf, int bufLen)
uint8_t * getBuffer (unsigned int size)
ASObjectgetVariableByQName (const tiny_string &name, const tiny_string &ns, bool skip_impl=false)
ASObjectgetVariableByMultiname (const multiname &name, bool skip_impl=false, bool enableOverride=true, ASObject *base=NULL)
intptr_t getVariableByMultiname_i (const multiname &name)
void setVariableByQName (const tiny_string &name, const tiny_string &ns, ASObject *o, bool skip_impl=false)
void setVariableByMultiname (const multiname &name, ASObject *o, bool enableOverride=true, ASObject *base=NULL)
void setVariableByMultiname_i (const multiname &name, intptr_t value)
bool isEqual (ASObject *r)

Static Public Member Functions

static void sinit (Class_base *c)
static void buildTraits (ASObject *o)

Protected Member Functions

 ByteArray (const ByteArray &b)

Protected Attributes

uint8_t * bytes
unsigned int len
unsigned int position

Friends

class Loader
class URLLoader

Detailed Description

Definition at line 35 of file flashutils.h.


Constructor & Destructor Documentation

ByteArray::ByteArray ( const ByteArray b  )  [protected]

Definition at line 41 of file flashutils.cpp.

ByteArray::ByteArray (  ) 

Definition at line 37 of file flashutils.cpp.

ByteArray::~ByteArray (  ) 

Definition at line 48 of file flashutils.cpp.


Member Function Documentation

void ByteArray::acquireBuffer ( uint8_t *  buf,
int  bufLen 
)

Definition at line 214 of file flashutils.cpp.

lightspark::ByteArray::ASFUNCTION ( readBytes   ) 
lightspark::ByteArray::ASFUNCTION ( _setPosition   ) 
lightspark::ByteArray::ASFUNCTION ( _getPosition   ) 
lightspark::ByteArray::ASFUNCTION ( _getLength   ) 
lightspark::ByteArray::ASFUNCTION ( _getBytesAvailable   ) 
void ByteArray::buildTraits ( ASObject o  )  [static]

Reimplemented from lightspark::ASObject.

Definition at line 62 of file flashutils.cpp.

uint8_t * ByteArray::getBuffer ( unsigned int  size  ) 

Definition at line 66 of file flashutils.cpp.

ASObject * ByteArray::getVariableByMultiname ( const multiname name,
bool  skip_impl = false,
bool  enableOverride = true,
ASObject base = NULL 
) [virtual]

Reimplemented from lightspark::ASObject.

Definition at line 127 of file flashutils.cpp.

intptr_t ByteArray::getVariableByMultiname_i ( const multiname name  )  [virtual]

Reimplemented from lightspark::ASObject.

Definition at line 140 of file flashutils.cpp.

ASObject* lightspark::ByteArray::getVariableByQName ( const tiny_string name,
const tiny_string ns,
bool  skip_impl = false 
) [inline, virtual]

Reimplemented from lightspark::ASObject.

Definition at line 58 of file flashutils.h.

bool ByteArray::isEqual ( ASObject r  )  [virtual]

Reimplemented from lightspark::ASObject.

Definition at line 204 of file flashutils.cpp.

void ByteArray::setVariableByMultiname ( const multiname name,
ASObject o,
bool  enableOverride = true,
ASObject base = NULL 
) [virtual]

Reimplemented from lightspark::ASObject.

Definition at line 168 of file flashutils.cpp.

void ByteArray::setVariableByMultiname_i ( const multiname name,
intptr_t  value 
) [virtual]

Reimplemented from lightspark::ASObject.

Definition at line 191 of file flashutils.cpp.

void ByteArray::setVariableByQName ( const tiny_string name,
const tiny_string ns,
ASObject o,
bool  skip_impl = false 
) [virtual]

Reimplemented from lightspark::ASObject.

Definition at line 151 of file flashutils.cpp.

void ByteArray::sinit ( Class_base c  )  [static]

Reimplemented from lightspark::ASObject.

Definition at line 53 of file flashutils.cpp.


Friends And Related Function Documentation

friend class Loader [friend]

Definition at line 37 of file flashutils.h.

friend class URLLoader [friend]

Definition at line 38 of file flashutils.h.


Member Data Documentation

uint8_t* lightspark::ByteArray::bytes [protected]

Definition at line 40 of file flashutils.h.

unsigned int lightspark::ByteArray::len [protected]

Definition at line 41 of file flashutils.h.

unsigned int lightspark::ByteArray::position [protected]

Definition at line 42 of file flashutils.h.


The documentation for this class was generated from the following files:
Generated on Tue Aug 24 19:50:36 2010 for Lightspark by  doxygen 1.6.3