I am implementing a Seek function for the File class in AGS script, and would like to know opinion on its parameters.
Should it follow the C fseek standart in the sense of declaration?
Code: ags
Is the function protoype (return value, order of arguments) is good, and is the default value convenient?
Should it follow the C fseek standart in the sense of declaration?
enum StreamSeek
{
eSeekBegin,
eSeekCurrent,
eSeekEnd
};
managed struct File
{
...
import bool Seek(int offset, StreamSeek whence = eSeekCurrent);
readonly import attribute int Position;
...
}
Is the function protoype (return value, order of arguments) is good, and is the default value convenient?