fix ignored message id key for NN>3, fix longer message key check (fixes #1436), add log message on exceeded max length

This commit is contained in:
John
2025-01-12 10:11:04 +01:00
parent 0445e4412e
commit 34552eab61
3 changed files with 17 additions and 14 deletions
+4 -7
View File
@@ -158,13 +158,6 @@ class Message : public AttributedItem {
*/
static uint64_t createKey(symbol_t pb, symbol_t sb, bool broadcast);
/**
* Get the length field from the key.
* @param key the key.
* @return the length field from the key.
*/
static size_t getKeyLength(uint64_t key) { return (size_t)(key >> (8 * 7 + 5)); }
/**
* Parse an ID part from the input @a string.
* @param input the input @a string, hex digits optionally separated by space.
@@ -1651,6 +1644,10 @@ class MessageMap : public MappedFileReader {
*/
void dump(bool withConditions, OutputFormat outputFormat, ostream* output) const;
/**
* @return the maximum ID length used by any of the known @a Message instances.
*/
size_t getMaxIdLength() const { return m_maxIdLength; }
private:
/** empty vector for @a getLoadedFiles(). */