bitlengthInBytes static method

int bitlengthInBytes(
  1. BigInt value
)

Implementation

static int bitlengthInBytes(BigInt value) {
  return (value.abs().bitLength + 7) ~/ 8;
}