PostgreSQLLargeObject.Seek

From Xojo Documentation

Method

PostgreSQLLargeObject.Seek(offset as Integer, whence as Integer)

Supported for all project types and targets.

Positions the large object at offset relative to the beginning, end, or current position of the large object, as determined by the value of whence.

Notes

Possible values for whence are as follows:

Value Description
0 Offset is relative to the beginning of the large object.
1 Offset is relative to the current position of the large object.
2 Offset is relative to the end of the large object.

Example

Seek to the beginning of the large object:

largeObject.Seek(0, 0)

Seek to the end of the large object:

largeObject.Seek(0, 2)

Seek to the 10 bytes before the current position in the large object:

largeObject.Seek(10, 1)