The PayloadIterator provides an SLT friendly interface to traverse the files contained in the AppImage payload. It directly provides access to the entry path by means of operator*() and to the rest of entry properties by means of other function in the same class. This design mostly influenced by the limitations of libarchive and squashfuse.
Creating PayloadEntry objects seems to be a wrong approach as our back-end doesn't allow to keep references to a single entry while traversing.
This issue was opened to give another review to the design.
The text was updated successfully, but these errors were encountered:
Such class will have to be limited to a simple header. Including the contents will bloat the memory in case of large files. Also as I said in the issue description due to backend limitations you can only extract the information of entry while it's being traversed. Once the traversal moves forward those operations are not possible.