|
| ByteArrayPtr (const ByteArrayPtr &src) |
|
ByteArrayPtr & | operator= (const ByteArrayPtr &src) |
|
int | GetCapacity () const |
|
int | GetCount () const |
|
void | MustNotNull () const |
|
void | MustNull () const throw (Exception) |
|
void | SetCapacity (int length) |
|
void | SetCount (int length) |
|
void | AddCount (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 |
|
| BiasManagedPointer (const BiasManagedPointer &src) |
|
BiasManagedPointer & | operator= (const BiasManagedPointer &src) |
|
ByteArray 에 smart pointer 기능이 추가된 형태. 네트워크 패킷 형태로 쓰이므로 32-64 변환에도 민감. 따라서 intPtr이 아닌 int32 타입이다. ByteArray 가 typedef가 아닌 상속 클래스이기 때문에 필요한 메서드를 이 객체도 오버라이드해야 빌드 에러를 피한다.