Skip to content
lsl.devlsl.devLSL Dev

LlLinksetDataRead

Looking for the current API? Open the llLinksetDataRead reference →

Overview

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.

Function variants

llLinksetDataRead

Wiki description

Reads an unprotected name:value pair from the linkset's datastore.

Return value notes

Returns a string value corresponding to name

Caveats

If the name is an empty string, or the name:value pair was created with llLinksetDataWriteProtected this function returns an empty string.

llLinksetDataReadProtected

Wiki description

Reads a protected name:value pair from the datastore.

Return value notes

Returns a string value corresponding to name

Caveats

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

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.

See also: functions

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.