Function: assertFlexBytes
Utils.assertFlexBytes
▸ assertFlexBytes<Min
, Max
>(b
, min
, max
): asserts b is FlexBytes<Min, Max>
Verifies if a byte array has a certain length between min and max
Type parameters
Name | Type |
---|---|
Min | extends number |
Max | extends number = Min |
Parameters
Name | Type | Description |
---|---|---|
b | unknown | The byte array |
min | Min | Minimum size of the array |
max | Max | Maximum size of the array |
Returns
asserts b is FlexBytes<Min, Max>