Data.DB.TParamStreamObject.GetBytes
Delphi
function GetBytes: TArray<Byte>;
C++
System::DynamicArray<System::Byte> __fastcall GetBytes();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Data.DB.pas Data.DB.hpp |
Data.DB | TParamStreamObject |
Description
Reads a preset number of bytes from the stream stored by the TParamStreamObject instance.
Call GetBytes to read bytes from the stream stored by the TParamStreamObject instance. Prior to calling this method, the number of bytes to read should be set using the SetKnownSize method. If the number of bytes is not set in advance, GetBytes reads as many bytes from the stream as possible.
On success, GetBytes returns a dynamic array of bytes read from the stream. Otherwise, GetBytes returns an empty byte array.