MemoryFile::Seek

MemoryFile::Seek
int Seek(int offset, int origin = Seek_Set);
Description

Seek sets file position indicator in the file and returns new position.

Parameters
Parameters 
Description 
int offset 
Number of bytes from origin. 
int origin = Seek_Set 
Position from where offset is added; here the position is beginning of the file. 
Return Value

An int value containing the new position, otherwise -1 for error.