Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Grow( uint16 Increment ) {
- ubyte* TempBuffer = Buffer;
- Increment = ( Increment > 0 ) ? Increment : 2;
- Buffer = new ubyte[ ByteSize * Increment ]();
- for( uint16 i = 0; i < ByteSize; i ++ ) {
- Buffer[ i ] = TempBuffer[ i ];
- };
- ByteSize *= Increment;
- delete[] TempBuffer;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement