[simple-scan (Document Scanner)]: how intermediate scanning data is stored?

When scanning document, before explicitly save the document into file. When the each piece of paper pass through the scanner. scanning result for each page will be appended into existed collection of scanning results.

How and where does simple-scan store those scanning results? In RAM or disk as temporary files?

Can anyone give me a low-level detailed explanation about it?

If so, I would be appreciate!!!

It’s stored as a heap-allocated pixel buffer inside a Page object:


so it’s in RAM.