Data.DB.TParam.SetStream

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TParam

Delphi

procedure SetStream(Stream: TStream; AInstanceOwner: Boolean; KnownSize: Integer = 0);

C++

void __fastcall SetStream(System::Classes::TStream* Stream, bool AInstanceOwner, int KnownSize = 0x0);

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.

See Also