Data.DBXJSONCommon.TDBXJSONTools.StreamToJSON
Delphi
class function StreamToJSON(const Stream: TStream; const Offset: Integer; const ByteCount: Integer): TJSONArray; static;
C++
static System::Json::TJSONArray* __fastcall StreamToJSON(System::Classes::TStream* const Stream, const int Offset, const int ByteCount);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.DBXJSONCommon.pas Data.DBXJSONCommon.hpp |
Data.DBXJSONCommon | TDBXJSONTools |
Description
Creates the JSON equivalent to a DBX stream.
The StreamToJSON method creates the JSON equivalent to a DBX stream. The result is suitable for asynchronous calls and should not be used for large streams. The use of Data Converters is recommended if the stream is expected to be large.
The following table lists the parameters of the StreamToJSON method.
Parameter | Meaning |
---|---|
Stream |
Input stream object; never null. |
Offset |
The zero-based index of the first byte to read from. |
ByteCount |
The number of bytes to which the result is limited. |