image_matchstorage(3)
π¦ image_matchstorage β test if two vids share the same underlying storage π
okay bestie, this is the image_matchstorage(3) page from the Arcan Lua API β¨. it's a tiny little storage vibe check for two vids, and honestly it ate.
π NAME
image_matchstorage β test if two vids share the same underlying storage. that's the whole assignment, no cap π
π SYNOPSIS
true or false
image_matchstorage( v1, v2 )
so yeah, it gives you back true or false, and you hand it v1 and v2 π«Ά
π DESCRIPTION
here's the tea β: this function tells you if two vids share the same underlying backing store. lowkey iconic when you need to make a transition based on visual properties that are inherent to the backing store.
and why would you need this? because there are no strong equality tests for regular vids β they're all treated as unique π. so don't come at regular vids expecting a clean equality test, bestie. image_matchstorage is the function doing the backing-store check.
β¨ EXAMPLE
peep the example, exactly as written:
function image_matchstorage0()
a = fill_surface(32, 32, 0, 255, 0);
c = fill_surface(32, 32, 255, 0, 0);
b = null_surface(32, 32);
image_sharestorage(a, b);
assert(image_matchstorage(a, b) == true);
assert(image_matchstorage(a, c) == false);
image_sharestorage(a, c);
assert(image_matchstorage(a, c) == true);
end
π SEE ALSO:
imageβ the related page to go check out π
okay that's the whole page, bestie β later! π«Ά this was from the image manual, October 2026, page image_matchstorage(3) π
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms