// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Estimate variable-length integer bytes // Not compiled or tested in-world // Setup: Place in a spare owned prim. Set VALUE from zero through2147483647. Owner touch runs the local demonstration. // Stop / restore: Disable/remove. No external requests or scene changes occur; reset clears memory. // Notes: Prints each seven-bit payload in low-to-high order; continuation flag is set on every nonfinal byte. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Local owner-only protocol laboratory. integer VALUE=16384; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(VALUE<0) { llOwnerSay("Nonnegative value required."); return; } integer remaining=VALUE; list bytes; do { integer part=remaining&127; remaining=remaining>>7; if(remaining>0)part=part|128; bytes+=[part]; } while(remaining>0); llOwnerSay("Bytes decimal="+llDumpList2String(bytes,",")+"; count="+(string)llGetListLength(bytes)); } }