bitlengthInBytes static method
Implementation
static int bitlengthInBytes(BigInt value) {
int bitlength = value.bitLength;
if (value.isNegative) {
bitlength++;
}
return (bitlength + 7) ~/ 8;
// return (value.abs().bitLength + 7) ~/ 8;
}