Skip to content
lsl.devlsl.devLSL Dev

llLinksetDataReadProtected

function
Function syntax
string llLinksetDataReadProtected(
  1. string name,// Key of the protected key-value pair to read.
  2. string pass// Passphrase required to read the protected key.
);
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 a protected name:value pair from the datastore.

Returns a string value corresponding to name

If the pass parameter does not match, this function returns an empty string.

How to use
string result = llLinksetDataReadProtected("", "");
  • 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.

The original wiki page documents these functions together with this one:

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.

From the Second Life Wiki

Community documentation adapted from LlLinksetDataRead, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.