Uint8 *unified_block;
uint8 *unified_block;
static	Uint8 *chunks_to_block(vector<Chunk> &chunks){	Uint8 *unified_block;	size_t	aggregate_length=0;	size_t	working_offset=0;		for(vector<Chunk>::iterator it=chunks.begin();		it!=chunks.end(); ++it)		{		aggregate_length+=it->length;		}	unified_block=new Uint8[aggregate_length];	for(vector<Chunk>::iterator it=chunks.begin();		it!=chunks.end(); ++it)		{		memcpy(unified_block+working_offset,it->data,it->length);		working_offset+=it->length;		delete [] it->data; it->data=0; it->length=0;		}		return unified_block;}