(file) Return to Buffer.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Buffer.cpp between version 1.15 and 1.16

version 1.15, 2008/12/02 09:00:42 version 1.16, 2011/02/23 09:41:09
Line 186 
Line 186 
     }     }
 } }
  
   void Buffer::insertWithOverlay(
       Uint32 pos,
       const char* data,
       Uint32 size,
       Uint32 overlay)
   {
       if (pos > _rep->size)
           return;
   
       Uint32 rem = _rep->size - pos;
   
       memmove(_rep->data + pos + size - overlay, _rep->data + pos, rem);
       memcpy(_rep->data + pos, data, size);
   
       _rep->size += (size-overlay);
   }
   
 void Buffer::remove(Uint32 pos, Uint32 size) void Buffer::remove(Uint32 pos, Uint32 size)
 { {
     if (pos + size > _rep->size)     if (pos + size > _rep->size)


Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2