function
Function syntax
string llLinksetDataRead(string name// Key of the key-value pair to read.
);- Returns
string- Energy
- 10
The llLinksetDataRead and llLinksetDataReadProtected functions return the value in the linkset’s datastore for the provided name. If name is not found, these functions return an empty string.
Reads an unprotected name:value pair from the linkset’s datastore.
Returns a string value corresponding to name
Caveats
Section titled “Caveats”If the name is an empty string, or the name:value pair was created with llLinksetDataWriteProtected this function returns an empty string.
string result = llLinksetDataRead("");Caveats
Section titled “Caveats”- While LSL scripts use UTF-16 encoding for strings resulting in 2 bytes per character for codepoints up to U+FFFF or 4 bytes otherwise, linkset data uses UTF-8 for a more varying encoding size (1 byte up to codepoint U+7F, 2 bytes up to U+7FF, 3 bytes up to U+FFFF and 4 bytes otherwise). Although a niche concern, this can result in strings not having an immediately obvious size and in very constrained situations, possibly not fit in script memory/linkset data.
Related functions
Section titled “Related functions”The original wiki page documents these functions together with this one:
See also
Section titled “See also”Functions
Section titled “Functions”llLinksetDataAvailablellLinksetDataCountFoundllLinksetDataCountKeysllLinksetDataDeletellLinksetDataDeleteFoundllLinksetDataFindKeysllLinksetDataListKeysllLinksetDataResetllLinksetDataWrite
Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.