38 if (inBuf!=0 && inLen!=0)
45 bool assign(T* newBuf, uint_least32_t newLen)
53 T*
get()
const {
return buf; }
54 uint_least32_t len()
const {
return bufLen; }
63 uint_least32_t xferLen()
65 const uint_least32_t tmpBufLen = bufLen;
70 T& operator[](uint_least32_t index)
72 return (index < bufLen) ? buf[index] : dummy;
75 bool isEmpty()
const {
return (buf==0); }
79 if (buf!=0 && bufLen!=0)
81 #ifndef SID_HAVE_BAD_COMPILER
84 delete[] (
void *) buf;
97 uint_least32_t bufLen;