iverase commented on a change in pull request #107: URL: https://github.com/apache/lucene/pull/107#discussion_r622242751
########## File path: lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.java ########## @@ -640,6 +640,33 @@ static void writeCRC(IndexOutput output) throws IOException { throw new IllegalStateException( "Illegal CRC-32 checksum: " + value + " (resource=" + output + ")"); } - output.writeLong(value); + writeLong(output, value); + } + + /** write int value on header / footer */ + public static void writeInt(DataOutput out, int i) throws IOException { Review comment: I rename methods like writeBE / readBE to make it more explicit. -- 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. 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