llLinksetDataWrite

From Second Life Wiki
Revision as of 16:23, 13 October 2022 by Leviathan Linden (talk | contribs)
Jump to navigation Jump to search

Summary

Function: integer llLinksetDataWrite( string key, string value );
0.0 Forced Delay
10.0 Energy

The llLinksetDataWrite function creates or updates the key:value pair in the linkset datastore. If value is an empty string, the pair is deleted.

This function returns 0 on success or an error code on failure.

When this function is called the linkset_data event is triggered in all scripts running in the linkset with an action of LINKSETDATA_UPDATE, or LINKSETDATA_DELETE if the pair is deleted.
Returns an integer success or failure code.

• string key The key of the key:value pair in the datastore to be updated or created.
• string value The value of the key:value pair.

Specification

The linkset datastore can contain up to 64k of data. Every pair written to the datastore consumes a number of bytes in the datastore equal to the length of key plus the length of value.

Examples

Deep Notes

Signature

function integer llLinksetDataWrite( string key, string value );