On Tue Mar 28 21:47:08 2023 +0000, Zebediah Figura wrote:
Yes, thanks, I don't know how I thought that code was correct. Should be fixed in v3.
I'm pretty sleepy right now, but this doesn't look right either. For example, if you want to flush the whole resource the `(right, bottom, back)` point that is involved in that computation is a whole slice (plus a line, plus a point) past the end of the resource. Wouldn't you want something like `get_data_offset(right - 1, bottom - 1, back - 1) + 1`, at least for uncompressed formats?
As I said, I might be missing something here.