sources/network/bytestream.cpp

changeset 94
294803d4ab5d
parent 88
08ccaf26cffd
child 98
4f0f0b1b8e0b
equal deleted inserted replaced
93:1ea012a6e1ec 94:294803d4ab5d
95 95
96 delete[] m_data; 96 delete[] m_data;
97 m_allocatedSize = newsize; 97 m_allocatedSize = newsize;
98 m_data = new unsigned char[newsize]; 98 m_data = new unsigned char[newsize];
99 99
100 if (olddata > 0L) 100 if (oldsize > 0L)
101 memcpy (m_data, olddata, min (oldsize, newsize)); 101 memcpy (m_data, olddata, min (oldsize, newsize));
102 } 102 }
103 103
104 // ------------------------------------------------------------------------------------------------- 104 // -------------------------------------------------------------------------------------------------
105 // 105 //

mercurial