-
Thanks for the great library Klaus :) I'm designing to have a skippable block at the beginning of the compressed S2 stream. The block will contain information about what's in the actual data (my own index format). It would be nice if calling Reader.SkippableCB() would immediately have a peek at the first block to see if that is a skippable block. Or is there any other way to do this that I've missed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
In general the Reader does no do any "ahead-of-time" reading. However, it seems like doing a 0 byte read like this If that works, I wouldn't mind making this "official API" and document/test this behavior. |
Beta Was this translation helpful? Give feedback.
In general the Reader does no do any "ahead-of-time" reading.
However, it seems like doing a 0 byte read like this
(*Reader).Read([]byte{})
should trigger it to read ahead and should return your skippable block.If that works, I wouldn't mind making this "official API" and document/test this behavior.