Long String
When saving large amounts of serialized data to WoW’s SavedVariables files, it’s common to run into
issues where very large strings aren’t saved properly. The LongString module provides a simple
solution to this by internally splitting the string and storing it as a list of smaller strings. It
also leverages the Encoder module to compress the string and encode it as base64.
API
-
class BaseType.LongString:
LibTSMModule -
staticmethod Encode(str:
string):EncodedLongString Encodes a long string into a value which is safe to store in WoW’s SV file.
- Parameters:
str (
string) – The string to encode
-
staticmethod Decode(value:
EncodedLongString):string Decodes a previously-encoded value back into a long string.
- Parameters:
value (
EncodedLongString) – The value to decode
-
staticmethod Encode(str: