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