ludus::content::string_dictionary::StringDictionaryWriterConfig¶
Ludus Wiki · API overview · Browse API
Struct
Cold setup limits for one dictionary writer.
#include <ludus/content/string_dictionary/string_dictionary_writer.h>
struct ludus::content::string_dictionary::StringDictionaryWriterConfig final
Fields¶
BytePolicy¶
uint32 ludus::content::string_dictionary::StringDictionaryWriterConfig::BytePolicy {string_dictionary_format::BYTE_POLICY_UTF8}
BYTE_POLICY_UTF8 rejects malformed UTF-8; both policies reject zero bytes.
Related types: uint32
MaxEntries¶
uint32 ludus::content::string_dictionary::StringDictionaryWriterConfig::MaxEntries {string_dictionary_format::MAX_ENTRIES}
Most unique spellings, including the empty entry; 1..MAX_ENTRIES.
Related types: uint32
MaxSpellingBytes¶
usize ludus::content::string_dictionary::StringDictionaryWriterConfig::MaxSpellingBytes {string_dictionary_format::MAX_SPELLING_BYTES}
Longest spelling in bytes; at most MAX_SPELLING_BYTES.
Related types: usize
MaxBlobBytes¶
usize ludus::content::string_dictionary::StringDictionaryWriterConfig::MaxBlobBytes {string_dictionary_format::MAX_BLOB_BYTES}
Largest spelling blob including terminators; 1..MAX_BLOB_BYTES.
Related types: usize
MaxTableBytes¶
usize ludus::content::string_dictionary::StringDictionaryWriterConfig::MaxTableBytes {usize{64} * 1024 * 1024}
Budget for the deduplication table, including its growth peak. TryFinish additionally allocates working storage proportional to the entry count.
Related types: usize