|
| ByteArrayPtr () |
|
| ByteArrayPtr (const ByteArrayPtr &src) |
|
ByteArrayPtr & | operator= (const ByteArrayPtr &src) |
|
int | GetCapacity () const |
|
int | GetCount () const |
|
| __declspec (property(get=GetCount)) int Count |
|
void | MustNotNull () const |
|
void | MustNull () const throw (Exception) |
|
void | SetCapacity (int length) |
|
void | SetCount (int length) |
|
void | Add (uint8_t data) |
|
void | AddRange (const uint8_t *data, int count) |
|
void | InsertRange (int indexAt, const uint8_t *data, int count) |
|
void | RemoveRange (int indexAt, int count) |
|
void | RemoveAt (int index) |
|
void | Clear () |
|
uint8_t * | GetData () |
|
const uint8_t * | GetData () const |
|
ByteArrayPtr | Clone () |
|
template<typename BYTEARRAYT > |
void | CopyRangeToT (BYTEARRAYT &dest, int srcOffset, int count) const |
|
void | CopyRangeTo (ByteArrayPtr &dest, int srcOffset, int count) const |
|
void | CopyRangeTo (ByteArray &dest, int srcOffset, int count) const |
|
uint8_t & | operator[] (int index) |
|
const uint8_t & | operator[] (int index) const |
|
GrowPolicy | GetGrowPolicy () const |
|
void | SetGrowPolicy (GrowPolicy val) |
|
void | SetMinCapacity (int val) |
|
void | UseInternalBuffer () |
|
void | UseExternalBuffer (uint8_t *buf, int capacity) |
|
void | UninitBuffer () |
|
bool | IsNull () const |
|
void | MustInternalBuffer () |
|
bool | Equals (const ByteArrayPtr &rhs) const |
|
It is the form that smart pointer function has been added to ByteArray. It is very sensitive to conversion from 32 to 64 because of being used as the form of network packet, so its form is int32 (not intPtr). To avoid build error, this object has to override require method because ByreArray is inherit class instead of typedef.