System.JSON.TJSONBool.ToBytes

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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

C++

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

Properties

Type Visibility Source Unit Parent
function public
System.JSON.pas
System.JSON.hpp
System.JSON TJSONBool

Description

Serializes the current JSON boolean value into an array of bytes.

ToBytes writes byte representation of the current JSON boolean value into the specified <Data> byte array beginning from the <Offset> element. ToBytes returns the actual size of the <Data> array. ToBytes assumes that the byte container has sufficient capacity.

ToBytes writes:

The parameters are described in the table below.

Parameter Meaning

Data

Byte container

Idx

Offset from which the JSON boolean is serialized

Note: We recommend using EstimatedByteSize to determine the container capacity.

See Also