ftStream
ftStream = 48
Example
function IsStreamParameter(DataType: TFieldType): Boolean;
begin
Result := DataType = ftStream;
end;
Usage
ftStream identifies a live TStream object parameter whose ownership, current position and read/write capabilities are API-defined.
Additional Technical Info
ftStream is ordinal 48 of TFieldType. It marks a TStream object parameter and has no default ordinary field class.
The enum does not say whether the stream is readable, writable, seekable, memory-backed or file-backed. The current Position is part of the call contract: a consumer may read from it, reset it or leave it at end. Ownership is separate; never free or retain a caller-owned stream without explicit permission.
Bound reads/copies for untrusted or very large streams, propagate errors, and avoid assuming Size is available. Streams are generally mutable and not inherently thread-safe.
The example only compares metadata and was source-reviewed; no stream, file, object, runtime or image test ran.
External references
- Embarcadero
TFieldTypeandTStream. - Free Pascal
TFieldTypeandTStreamcompatibility references.