System.JSON.TJSONByteReader.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(const Data: PByte; const Offset: Integer; const Range: Integer); overload;
constructor Create(const Data: PByte; const Offset: Integer; const Range: Integer; const IsUTF8: Boolean); overload;

C++

__fastcall TJSONByteReader(const System::PByte Data, const int Offset, const int Range)/* overload */;
__fastcall TJSONByteReader(const System::PByte Data, const int Offset, const int Range, const bool IsUTF8)/* overload */;

Properties

Type Visibility Source Unit Parent
constructor public
System.JSON.pas
System.JSON.hpp
System.JSON TJSONByteReader

Description

Creates an instance of the TJSONByteReader class.

Call Create to create an instance of the TJSONByteReader class. The Create methods has two overloads. The first overload has to be called with the Data, Offset, and Range parameters, while the second overload has the same parameters plus an additional IsUTF8 parameter.

Data is of type TBytes and specifies the data that will be consumed at creation time.

Offset is an Integer specifying the location of the first byte to be consumed at creation time.

Range is an Integer specifying how many bytes will be consumed at creation time.

IsUTF8 is a Boolean value and specifies whether TJSONByteReader contains UTF-8 data.

See Also