tang-hi commented on issue #12225: URL: https://github.com/apache/lucene/issues/12225#issuecomment-1533120380
@Stupiddd, I believe it's not a bug. In the comment for the decode method, it states: ``` Read `iterations * blockCount()` blocks from `blocks`, decode them, and write `iterations * valueCount()` values into `values`. ``` The loop iteration count can be determined by either `iterations * blockCount()` or `iterations * valueCount()`. When decoding from long[] blocks, using `iterations * valueCount()` is more straightforward. On the other hand, when decoding from byte[] blocks, using `iterations * blockCount()` is more convenient. Therefore, using `iterations * byteValueCount` as the iteration count should be fine. Please correct me if I'm wrong :smile: . Additionally, I believe the confusion arises due to the lack of comments. You may consider adding more comments to this class to provide better clarity for others who might encounter the same issue. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org