opSize static method
Bytes needed for one operation, excluding the batch count.
Implementation
static int opSize(Uint8List key, Uint8List? value) {
final valueLength = value?.length ?? 0;
return 1 +
_varintSize(key.length) +
key.length +
_varintSize(valueLength) +
valueLength;
}