Data.DBXJSON.TJSONArray.ToBytes

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ToBytes(const Data: TArray<Byte>; const Pos: Integer): Integer; override;

C++

virtual int __fastcall ToBytes(const System::DynamicArray<System::Byte> Data, const int Pos);

Properties

Type Visibility Source Unit Parent
function public
Data.DBXJSON.pas
Data.DBXJSON.hpp
Data.DBXJSON TJSONArray

Description

Serializes the JSON array content into bytes.

Serializes the JSON array content into the given byte container and returns the actual size used. It assumes that the byte container has sufficient capacity to store the JSON array.

The arguments of this method are given in the table below, together with their meanings.



Argument Meaning

Data

Byte container.

Offset

Offset from which the array content is serialized.



Note: We recommend that the container capacity be determined using a call to EstimatedByteSize.

To serialize the JSON array into a string, use the ToString method.

See Also

Personal tools
Translations