Function: assertBytes
Utils.assertBytes
▸ assertBytes<Length
>(b
, length
): asserts b is Bytes<Length>
Verifies if a byte array has a certain length
Type parameters
Name | Type |
---|---|
Length | extends number |
Parameters
Name | Type | Description |
---|---|---|
b | unknown | The byte array |
length | Length | The specified length |
Returns
asserts b is Bytes<Length>