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 to expected.
assertEncodedMaxLength(String value, BufferEncoding encoding, int max) → void
Asserts that the encoded byte length of value is less than or equal to max.
assertLength(int length, int expected) → void
Assert
assertMaxLength(int length, int max) → void
Asserts that length is less than or equal to max.