Discuss this help topic in SecureBlackbox Forum

TElCompoundFileVirtualStream.Seek

TElCompoundFileVirtualStream     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Adjusts current position in the file.

Declaration

[C#/Java]
    long Seek(long Offset, SeekOrigin Origin);

[VB.NET]
    Function Seek(ByVal Offset As Long, ByVal Origin As SeekOrigin) As Long

[Pascal]
    function Seek(Offset : longint; Origin : word) : longint;

[C++]
    int32_t Seek(int32_t Offset, uint16_t Origin);
    int64_t Seek(int64_t Offset, TSeekOrigin Origin);

[PHP]
    integer Seek(integer $Offset, integer $Origin)
    integer Seek(integer $Offset, integer $Origin)

Parameters

  • Offset - number of bytes to shift the position relative to the origin.
  • Origin - defines the origin from which the position is computed.
    [Pascal]: set this parameter to 0 to start from the beginning, 1 to start from current position, and 2 to compute the offset from the end of the file.

Return value

    Returns the new position in the file.

Description

    Use this method to set the current position in the file.

See also:     CanSeek     Position    

Discuss this help topic in SecureBlackbox Forum