Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
membuf.CopyIn
#1
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
Reply
#2
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
Reply
#3
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)