Skip to content

LongString

Inherits: LibTSMModule

Functions

Decode

lua
function BaseType.LongString.Decode(value)
  -> string

Decodes a previously-encoded value back into a long string.

Parameters:

NameTypeDescription
valueEncodedLongStringThe value to decode

Returns:

TypeDescription
string

Encode

lua
function BaseType.LongString.Encode(str)
  -> table & table

Encodes a long string into a value which is safe to store in WoW's SV file.

Parameters:

NameTypeDescription
strstringThe string to encode

Returns:

TypeDescription
table & table