abytewriter::abytewriter( int size )
{
	adds  = 65536;
	cbyte = 0;
	
	error = false;
	fmem  = true;
	
	dsize = ( size > 0 ) ? size : adds;
    data = aligned_alloc(dsize);
	if ( data == NULL ) {
		error = true;
        custom_exit(ExitCode::MALLOCED_NULL);
		return;
	}
}
abytewriter::abytewriter( int size )
{
	adds  = 65536;
	cbyte = 0;
	
	error = false;
	fmem  = true;
	
	dsize = ( size > 0 ) ? size : adds;
    data = aligned_alloc(dsize);
	if ( data == NULL ) {
		error = true;
        custom_exit(ExitCode::MALLOCED_NULL);
		return;
	}
}