CByteArray - way to quick load?
I'm running into major delays copying blocks of binary data into CByteArray manually. Wouldn't it seem logical to provide a way to fastload a cba, to wit:
CByteArray cba;
cba.SetSize(8192);
memcpy(cba.GetBuffer(0), (LPBYTE) p, cba.GetSize());
Does some facility like this exist? Or am I just missing the incredibly obvious...
Thx, Dave Minor
mailto:[email protected]
Re: CByteArray - way to quick load?
Can't you just alter your memcpy to point to the first element?
memcpy(&cba.ElementAt(0),(LPBYTE) p, cba.GetSize());