files.h
// Work in progress fwrite replacement for void*
Work in progress fwrite replacement for void
Work in progress fwrite replacement for void
inline void Write(void* buf_from, lui32 size, void* buf_data, lui32* buf_data_addr) {
		lui32 bigs = size / 8u;
		void* buf_data_offs = &((lui8*)buf_data)[*buf_data_addr];
		for (lui32 i = 0u; i < bigs; ++i) {
			((lui64*)buf_data_offs)[i] = ((lui64*)buf_from)[i];
		}
		for (lui32 i = bigs * 8; i < size; ++i) {
			((lui8*)buf_data_offs)[i] = ((lui8*)buf_from)[i];
		}
		*buf_data_addr += size;
	}
inline void Write ( void * buf_from , lui32 size , void * buf_data , lui32 * buf_data_addr ) { lui32 bigs = size / 8u ; void * buf_data_offs = & ( ( lui8 * ) buf_data ) [ * buf_data_addr ] ; for ( lui32 i = 0u ; i < bigs ; ++ i ) { ( ( lui64 * ) buf_data_offs ) [ i ] = ( ( lui64 * ) buf_from ) [ i ] ; } for ( lui32 i = bigs * 8 ; i < size ; ++ i ) { ( ( lui8 * ) buf_data_offs ) [ i ] = ( ( lui8 * ) buf_from ) [ i ] ; } * buf_data_addr += size ; }
Work in progress fwrite replacement for void
Work in progress fwrite replacement for void
// V1 //	for (lui32 i = 0u; i < size; ++i) { //		((lui8*)buf_to)[i] = ((lui8*)buf_from)[*addr + i]; //	} // V2