You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2022/05/24 14:05:51 UTC
[GitHub] [ignite-3] tkalkirill commented on a diff in pull request #818: IGNITE-17014 [Native Persistence 3.0] Porting FilePageStoreFactory and FilePageStore from 2.0
tkalkirill commented on code in PR #818:
URL: https://github.com/apache/ignite-3/pull/818#discussion_r880557778
##########
modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java:
##########
@@ -272,6 +273,22 @@ public static String toHexString(long addr, int len) {
return sb.toString();
}
+ /**
+ * Returns hex representation of memory region.
+ *
+ * @param buf Buffer which content should be converted to string.
+ */
+ public static String toHexString(ByteBuffer buf) {
+ StringBuilder sb = new StringBuilder(buf.capacity() * 2);
+
+ for (int i = 0; i < buf.capacity(); i++) {
+ // Can not use getLong because on little-endian it produces bs.
Review Comment:
Fix it
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org