StringSettingDefaults

The serialisation names and default values for the string settings, indexed by the 14-bit index (i.e. key and SettingType.INDEX_MASK). Mirrors the str_settings array in settings_pack.cpp one-to-one.

Properties

Link copied to clipboard
val COUNT: Int

Number of string settings (= libtorrent's num_string_settings).

Link copied to clipboard

Default values in index order. null means "no default" (libtorrent stores a C++ nullptr and reports the empty string). StringSetting.USER_AGENT embeds the tracked libtorrent version from Version.LIBTORRENT_VERSION.

Link copied to clipboard

Names used for bencoded serialisation, in index order. Deprecated entries that libtorrent compiles out keep an empty name (matching DEPRECATED_SET_STR).