The lseek:whence: message is used to query and set the file offset. This is the position in the file used by
read:startingAt:nbyte: and
write:startingAt:nbyte: when transferring data. A successful read or write operation automatically sets the file offset to point after the last byte read or written.
The lseek:whence: message is sent to an open
CfsFileDescriptor instance. The first argument,
offset, is an integer offset into the file. The second argument,
whence, is one of the constants shown in the following table, which are defined in the
CfsConstants pool dictionary. The
lseek:whence: message answers an integer representing the new file offset.