System.JSON.TJSONAncestor.EstimatedByteSize
Delphi
function EstimatedByteSize: Integer; virtual; abstract;
C++
virtual int __fastcall EstimatedByteSize(void) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.JSON.pas System.JSON.hpp |
System.JSON | TJSONAncestor |
Description
Declares the method that should return the estimated byte size of the current JSON object.
Descendants of TJSONAncestor implementing EstimatedByteSize, for example TJSONString, define EstimatedByteSize as returning the estimated byte size of the current JSON object. This information can be used to estimate the minimum size of the byte container (array of bytes) in which the JSON object can be serialized using the ToBytes method.
Note: The actual byte size of the current JSON object is usually smaller than estimated by EstimatedByteSize.