typedef struct _tag_cbuffer { unsigned char *dataptr; unsigned short size; unsigned short datalength; unsigned short dataindex; } cBuffer;