netudima commented on code in PR #3764:
URL: https://github.com/apache/cassandra/pull/3764#discussion_r1907526699


##########
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:
   @blambov should I make a separate BigEndianMemoryUtil as of now (with 
reverting changes in original MemoryUtil) to proceed or we need to wait for 
[CASSANDRA-20190](https://issues.apache.org/jira/browse/CASSANDRA-20190) 
results?



-- 
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]

Reply via email to