Table of Contents

THttpRequestStream.Seek Method

Reports the current position but does not allow moving to an arbitrary position.

Remarks

Raises EStreamError for any seek that would change the position.

Syntax

Unit: Sparkle.HttpServer.Request

function THttpRequestStream.Seek(const Offset: Int64; Origin: TSeekOrigin): Int64; overload; override;

Parameters

<-> Parameter Type Description
const Offset Int64 The seek offset; only offsets that resolve to the current position are allowed.
Origin TSeekOrigin The seek origin.

Returns

The current stream position.

See also