maedhroz commented on code in PR #2451:
URL: https://github.com/apache/cassandra/pull/2451#discussion_r1245493932
##########
src/java/org/apache/cassandra/index/sai/disk/io/IndexOutputWriter.java:
##########
@@ -37,6 +37,9 @@ public class IndexOutputWriter extends IndexOutput
{
private static final Logger logger =
LoggerFactory.getLogger(IndexOutputWriter.class);
+ // the byte order of `out`'s native writeX operations doesn't matter,
+ // because we only use `write(byte[])` and `writeByte` methods.
IndexOutput calls these
+ // (via DataOutput) with methods that enforce LittleEndian-ness.
Review Comment:
Similar more navigable form of this:
```
/**
* The byte order of {@link SequentialWriter}'s native write operations
doesn't matter,
* because we only use {@link SequentialWriter#write(byte[])} and {@link
SequentialWriter#writeByte} methods.
* {@link IndexOutput} calls these (via {@link DataOutput}) with methods
that enforce LittleEndian-ness.
*/
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]