Data.DB.TParamStreamObject.GetBytes
[–] Properties | |
---|---|
Type: function | |
Visibility: protected | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TParamStreamObject |
Delphi
function GetBytes: TArray<Byte>;
C++
System::DynamicArray<System::Byte> __fastcall GetBytes();
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.