Data.DB.TParam.SetStream
Delphi
procedure SetStream(Stream: TStream; AInstanceOwner: Boolean; KnownSize: Integer = 0);
C++
void __fastcall SetStream(System::Classes::TStream* Stream, bool AInstanceOwner, int KnownSize = 0x0);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.DB.pas Data.DB.hpp |
Data.DB | TParam |
Description
Sets the value of the TParam instance to the given stream, using the specified ownership flag.
Call SetStream to set the value of the TParam instance to the stream given through the Stream parameter, using the ownership flag specified by AInstanceOwner.
The KnownSize parameter specifies the size of the stream, which represents the number of bytes that the GetBytes method reads from the stream.
If AInstanceOwner is True, the TParamStreamObject corresponding to the TParam instance will also own the object given by Stream.