IBX.IBBlob.TIBBlobStream.Seek

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Seek(Offset: Longint; Origin: Word): Longint; override;

C++

virtual int __fastcall Seek(int Offset, System::Word Origin)/* overload */;
inline __int64 __fastcall  Seek(const __int64 Offset, System::Classes::TSeekOrigin Origin){ return System::Classes::TStream::Seek(Offset, Origin); }

Properties

Type Visibility Source Unit Parent
function public
IBX.IBBlob.pas
IBX.IBBlob.hpp
IBX.IBBlob TIBBlobStream

Description

Resets the current position of the TIBBlobStream object.

Use Seek to move the current position within the Blob data by the indicated offset. Seek allows an application to read from or write to a particular location within the Blob data.

The Origin parameter indicates how to interpret the Offset parameter. Origin should be one of the following values:



Value

Meaning

soFromBeginning

Offset is from the beginning of the Blob data

Seek moves to the position Offset

Offset must be >= 0

soFromCurrent

Offset is from the current position in the Blob data

Seek moves to Position + Offset

soFromEnd

Offset is from the end of the Blob data

Offset must be <= 0 to indicate a number of bytes before the end of the Blob



Seek returns the new value of the Position property, the new current position in the Blob data.