我的理解是 memcpy 必须有 3 个参数:
void * memcpy ( void * destination, const void * source, size_t num );
所以我正在尝试这段代码:
//char *tmpPtr is a pointer that points to some data
char frameBuffer[921600]; //destination starting a given index
int bufferIndex;//the given index
memccpy(frameBuffer+bufferIndex,tmpPtr,Data.size()-1);
但我收到此错误:
错误:函数 `void * memccpy (void *, const void *, int, size_t) 的参数太少