IO: Use memcpy instead of std::copy pario
authorNihit Desai <nhdesai2@illinois.edu>
Tue, 22 Nov 2011 00:52:33 +0000 (18:52 -0600)
committerNihit Desai <nhdesai2@illinois.edu>
Tue, 22 Nov 2011 00:52:33 +0000 (18:52 -0600)
src/libs/ck-libs/io/ckio.h

index 48c6914b895087f860fd6f2888748df2080688a2..8ca1578d66a9767c0eb2d671d9827691c75e2e18 100644 (file)
@@ -68,10 +68,9 @@ namespace Ck { namespace IO {
     
     void insertData(const char *data, size_t length, size_t offset)
     {
-      std::vector<char>::iterator it = array.begin();
-      it = it + offset;
+      char *dest = &array[offset];
+      memcpy(dest, data, length);
 
-      copy(data, data + length, it);
       bytes_filled_so_far += length;
     }