Метод measureEntry
Сигнатура метода
private function measureEntry(string $key, CapturedValue $value, bool $hasPrecedingEntry): int
Возвращает:
int
Описание
Bytes the entry adds to the encoded snapshot, measured by encoding the entry itself. The length of the value is not a substitute: Json::encode turns a quote, an apostrophe or an ampersand into six bytes, so a template holding such text would be measured several times smaller than it is stored.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$key
|
string
|
—
|
—
|
$value
|
CapturedValue
|
—
|
—
|
$hasPrecedingEntry
|
bool
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/Service/LastValues/ValuesCollector.php
Расположение метода в файле
Строки
92–97