RawFile.setPosition

From Spheriki

Jump to: navigation, search

Get the position of the file cursor within the file to read from or write to.


Contents

Usage

rawfile.setPosition(position);
  • rawfile Sphere RawFile object. The file handle to set the position within.
  • position number, non-negative. The number of bytes along the file to set the position to.


Examples

See examples for RawFile.getPosition().


Notes

  • The position is zero-based, where zero is situated in front of the first byte in the file.
  • RawFile objects have a cursor, which indicates the position in the file from which data is read or is written to. This function can obtain that position.


See also

Personal tools