getCompactLengthInfos method
Implementation
Tuple<int, int> getCompactLengthInfos(int offset) {
final length =
LayoutSerializationUtils.decodeLength(_bytes, offset: offset);
if (!length.item2.isValidInt) {
throw const LayoutException("compact value is too large for length.");
}
return Tuple(length.item1, length.item2.toInt());
}