OneRyan
The images don’t load when I click the “Show Full Post…” button, but they do load when I open the link in a separate browser tab. Just FYI.
The images don’t load when I click the “Show Full Post…” button, but they do load when I open the link in a separate browser tab. Just FYI.
@apl Nice article, but I am a bit confused about the chunks. You say they are uncompressed, yet later say there is compressed data within them. I don’t quite get this.
@OneRyan I am not sure how the integration between these forums and our website works but I guess the articles are meant to be viewed on the website and the image locations must be relative to the website.
1 reply@leavengood I found it slightly confusing too. My read is that there are n
chunks, and each chunk (except the last) represents 64kb of real, uncompressed data. They are stored compressed, and the index at the end contains those compressed lengths so you know what to decompress.
So you want to start reading from the start of data? Decompress the first chunk and use it. Let’s say it contains an index into byte 100,000. You know that’ll be in the second chunk because it covers bytes 65,536~131,071, so look at the index at the end of the file to know which bytes cover the compressed chunk two, then read and decompress that.
I miss the information, that a hpkg file, then installing it, there files are in write protected areas. I think this information need to be told too.