Public Types | Public Member Functions | List of all members
Proud::ByteArray Class Reference
Inheritance diagram for Proud::ByteArray:
Inheritance graph
[legend]

Public Types

typedef CFastArray< uint8_t,
true, int > 
Base
 

Public Member Functions

 ByteArray ()
 
 ByteArray (const uint8_t *data, int count)
 
 ByteArray (const ByteArray &src)
 
String ToHexString ()
 
bool FromHexString (String text)
 
- Public Member Functions inherited from Proud::CFastArray< uint8_t, true, int >
void UseFastHeap (CFastHeap *heap)
 
CFastHeapGetFastHeap () const
 
 CFastArray ()
 
 CFastArray (const uint8_t *data, intcount)
 
 CFastArray (const CFastArray &src)
 
bool UsingFastAllocator () const
 
void SetGrowPolicy (GrowPolicy val)
 
GrowPolicy GetGrowPolicy ()
 
void SetMinCapacity (intnewCapacity)
 
void SetCapacity (intnewCapacity)
 
void SetCount (intnewVal)
 
int GetCapacity () const
 
int GetCount () const
 
void Clear ()
 
void ClearAndKeepCapacity ()
 
 __declspec (property(get=GetCount)) intCount
 
const uint8_t & ElementAt (intindex) const
 
uint8_t & ElementAt (intindex)
 
const uint8_t & operator[] (intindex) const
 
uint8_t & operator[] (intindex)
 
uint8_t * GetData ()
 
const uint8_t * GetData () const
 
void Add (const uint8_t &value)
 
void Insert (intindexAt, const uint8_t &value)
 
void AddRange (const uint8_t *data, intcount)
 
void InsertRange (intindexAt, const uint8_t *data, intcount)
 
void CopyRangeTo (CFastArray &dest, intsrcOffset, intcount) const
 
void CopyTo (CFastArray &dest) const
 
void CopyFrom (const CFastArray &src)
 
void CopyFrom (const uint8_t *from, intfromCount)
 
void RemoveRange (intindex, intcount)
 
void RemoveAt (intindex)
 
bool RemoveOneByValue (const uint8_t &value)
 
CFastArrayoperator= (const CFastArray &src)
 
int FindByValue (const uint8_t &value)
 
bool Equals (const CFastArray &rhs) const
 
void clear ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
iterator erase (iterator iter)
 
uint8_t PopBack ()
 
void RemoveAndPullLast (intptr_t index)
 

Detailed Description

TODO:translate needed.

Constructor & Destructor Documentation

Proud::ByteArray::ByteArray ( )
inline

Defalut constructor

Proud::ByteArray::ByteArray ( const uint8_t *  data,
int  count 
)
inline

TODO:translate needed. Constructor copies external data

Parameters
data
count
Proud::ByteArray::ByteArray ( const ByteArray src)
inline

TODO:translate needed. Constructor copies external data

Parameters
src

Member Function Documentation

bool Proud::ByteArray::FromHexString ( String  text)

TODO:translate needed.

String Proud::ByteArray::ToHexString ( )

TODO:translate needed.