Example #1
0
sf_count_t M_SFGetFileLen(void* user_data)
{
	if(user_data == 0) return 0;  
	MFile* File = (MFile*)user_data;
	
	long pos = File->tell();
	File->rewind();
	File->seek(0, SEEK_END);
	sf_count_t size = File->tell();
	File->seek(pos, SEEK_SET);
	
	return size;
}