diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-09-02 16:41:09 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-09-02 16:41:09 -0400 |
commit | 1101ed699a0c3c23c0bb11267d390febfdc02409 (patch) | |
tree | 52b369b2f8a14413ca69eea04768cbbf7aa79da8 /indra/llrender/lltexturemanagerbridge.h | |
parent | 8c18cfd22583e981f93734ec0aa6ee0ead3f26c5 (diff) |
Introduce result_view.lua, and use it in LLInventory.lua.
result_view(key_length, fetch) returns a virtual view of a potentially-large
C++ result set. Given the result-set key, its total length and a function
fetch(key, start) => (slice, adjusted start), the read-only table returned by
result_view() manages indexed access and table iteration over the entire
result set, fetching a slice at a time as required.
Change LLInventory to use result_view() instead of only ever fetching the
first slice of a result set.
TODO: This depends on the viewer's "LLInventory" listener returning the total
result set length as well as the result set key. It does not yet return the
length.
Diffstat (limited to 'indra/llrender/lltexturemanagerbridge.h')
0 files changed, 0 insertions, 0 deletions