الطريقة THPDFJSONValue.SerializeBounded

تفحص حجم JSON مرتبًا محافظًا قبل حجز نتيجة UTF-8 المسلسلة

function SerializeBounded(MaxBytes: Int64): AnsiString;

The unit is HPDFDocJobs; MaxBytes must be positive and at most MaxInt, and nested containers are limited to depth 64

تقديرات السلاسل تسمح بستة بايتات إخراج لكل وحدة كود UTF-16 وتحسب مفاتيح الكائنات والفواصل؛ والتقدير قد يتجاوز حجم UTF-8 النهائي

An estimate or actual result exceeding MaxBytes raises EHPDFJobBudgetExceeded with metric resultBytes; the existing Serialize method retains its behavior

نتائج مقارنة بحدود