Package org.apache.ignite.internal.util
Class CacheObjectUnsafeUtils
- java.lang.Object
-
- org.apache.ignite.internal.util.CacheObjectUnsafeUtils
-
public class CacheObjectUnsafeUtils extends Object
Cache object utility methods.
-
-
Constructor Summary
Constructors Constructor Description CacheObjectUnsafeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intputValue(long addr, byte type, byte[] valBytes)static intputValue(long addr, byte type, byte[] srcBytes, int srcOff, int len)
-
-
-
Method Detail
-
putValue
public static int putValue(long addr, byte type, byte[] valBytes)- Parameters:
addr- Write address.type- Object type.valBytes- Value bytes array.- Returns:
- Offset shift compared to initial address.
-
putValue
public static int putValue(long addr, byte type, byte[] srcBytes, int srcOff, int len)- Parameters:
addr- Write address.type- Object type.srcBytes- Source value bytes array.srcOff- Start position in sourceBytes.len- Number of bytes for write.- Returns:
- Offset shift compared to initial address.
-
-