blambov commented on code in PR #3764: URL: https://github.com/apache/cassandra/pull/3764#discussion_r1905516535
########## src/java/org/apache/cassandra/utils/memory/MemoryUtil.java: ########## @@ -104,54 +104,87 @@ public static void setByte(long address, int count, byte b) unsafe.setMemory(address, count, b); } + public static void setShort(long address, short s, boolean isBigEndian) + { + unsafe.putShort(address, isBigEndian ? Short.reverseBytes(s) : s); Review Comment: https://issues.apache.org/jira/browse/CASSANDRA-20190 -- 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: pr-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org