ll.SetMemoryLimit

ll.SetMemoryLimit(Limit: number) : number

Requests Limit bytes to be reserved for this script. Returns TRUE or FALSE indicating whether the limit was set successfully. This function has no effect if the script is running in the LSO VM.

Example

ll.SetMemoryLimit(6)
{
  "def": "func",
  "desc": "Requests Limit bytes to be reserved for this script.\nReturns TRUE or FALSE indicating whether the limit was set successfully.\nThis function has no effect if the script is running in the LSO VM.",
  "energy": 10,
  "sleep": 0,
  "pure": false,
  "link": "https://wiki.secondlife.com/wiki/LlSetMemoryLimit",
  "name": "SetMemoryLimit",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "number"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Limit",
          "desc": "The amount to reserve, which must be less than the allowed maximum (currently 64KB) and not already have been exceeded.",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll