public final class AlignmentUtil extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
IS_PLATFORM_BIG_ENDIAN |
static int |
OBJECT_REFERENCE_ALIGN |
static int |
OBJECT_REFERENCE_MASK |
Modifier and Type | Method and Description |
---|---|
static void |
check2BytesAligned(long address) |
static void |
check4BytesAligned(long address) |
static void |
check8BytesAligned(long address) |
static void |
checkReferenceAligned(long address) |
static boolean |
is2BytesAligned(long address) |
static boolean |
is4BytesAligned(long address) |
static boolean |
is8BytesAligned(long address) |
static boolean |
isReferenceAligned(long address) |
static boolean |
isUnalignedAccessAllowed() |
public static final int OBJECT_REFERENCE_ALIGN
public static final int OBJECT_REFERENCE_MASK
public static final boolean IS_PLATFORM_BIG_ENDIAN
public static boolean is2BytesAligned(long address)
public static boolean is4BytesAligned(long address)
public static boolean is8BytesAligned(long address)
public static boolean isReferenceAligned(long address)
public static void checkReferenceAligned(long address)
public static void check2BytesAligned(long address)
public static void check4BytesAligned(long address)
public static void check8BytesAligned(long address)
public static boolean isUnalignedAccessAllowed()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.