A Str property, whose length prefix is a signed compact index.
Matches the engine's own FString serialiser, which stores the length as a
compact index, reads exactly that many characters at one or two bytes each,
and treats a stored length of 1 - the terminator alone - as an empty string.
From Anthrax (maintainer of the OldUnreal UT99 patch):
There are two legal encodings for string properties: "plain ANSI" or
UTF-16LE. If the string you want to store in the property has no
characters outside the [0, 0x7F] range, it will be stored as plain ANSI.
The way to tell them apart is to look at the length that is stored at the
start of the string: positive length = ANSI, negative = UTF-16LE.
The length counts characters, not bytes, and includes the terminator - so
a UTF-16LE string occupies twice as many bytes as its stated length.
A
Strproperty, whose length prefix is a signed compact index.Matches the engine's own FString serialiser, which stores the length as a compact index, reads exactly that many characters at one or two bytes each, and treats a stored length of 1 - the terminator alone - as an empty string.
From Anthrax (maintainer of the OldUnreal UT99 patch):
The length counts characters, not bytes, and includes the terminator - so a UTF-16LE string occupies twice as many bytes as its stated length.