Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm trying to delete a byte from a membuf and shift the contents down.

can I call

buffer.CopyIn(buffer, bufLen - 1, 1);

safely?  I know it depends whether you forward copy internally...

Thanks -- Bob
You shouldn't do that. I'll update the docs to indicate that. You'd have to copy out the two chunks on either side to another buffer, placing one after the other.
Dean Roddey
Explorans limites defectum
For 5.3.905 I added MoveToStart(), MakeSpace() and RemoveSpace() methods to the memory buffer class to handle these sorts of internal block move operations.
Dean Roddey
Explorans limites defectum

Forum Jump:

Users browsing this thread: 1 Guest(s)