solana/solana_borsh/src/utils/assert library
Imports
Functions
-
assertEncodedLength(
String value, BufferEncoding encoding, int expected) → void -
Asserts that the encoded byte length of
value
is equal toexpected
. -
assertEncodedMaxLength(
String value, BufferEncoding encoding, int max) → void -
Asserts that the encoded byte length of
value
is less than or equal tomax
. -
assertLength(
int length, int expected) → void - Assert
-
assertMaxLength(
int length, int max) → void -
Asserts that
length
is less than or equal tomax
.