chooseIntegerWidth(
maximum):IntegerWidth
Defined in: packages/wire/src/primitives.ts:19
Choose the smallest fixed width that can represent maximum.
Parameters
Section titled “Parameters”maximum
Section titled “maximum”number
Returns
Section titled “Returns”Throws
Section titled “Throws”With INVALID_ARGUMENT when maximum is not a non-negative safe integer.