Ejemplo n.º 1
0
int RageFile::Seek( int offset, int whence )
{
	switch( whence )
	{
	case SEEK_CUR:
		return SeekCur( (int) offset );
	case SEEK_END:
		offset += GetFileSize();
	}
	return Seek( (int) offset );
}
Ejemplo n.º 2
0
/// Get the current file pointer position
u64 YCFile::GetPosition()
{
	return SeekCur(0);
}