mpIntLength function

int mpIntLength(
  1. BigInt x
)

mpint: https://www.ietf.org/rfc/rfc4251.txt

Implementation

int mpIntLength(BigInt x) => x.bitLength ~/ 8 + 1;