opSize static method

int opSize(
  1. Uint8List key,
  2. Uint8List? value
)

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;
}