encodedSize static method
Bytes needed to encode ops.
Implementation
static int encodedSize(List<WalOp> ops) {
var size = _varintSize(ops.length);
for (final op in ops) {
size += 1 + _varintSize(op.key.length) + op.key.length;
final value = op.value;
final length = value?.length ?? 0;
size += _varintSize(length) + length;
}
return size;
}