mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 11:34:05 +09:00
UnsafeHelper.getArrayOffset to return long
This commit is contained in:
@@ -44,7 +44,7 @@ internal object UnsafeHelper {
|
|||||||
*
|
*
|
||||||
* @return offset from the array's base memory address (aka pointer) that the actual data begins.
|
* @return offset from the array's base memory address (aka pointer) that the actual data begins.
|
||||||
*/
|
*/
|
||||||
fun getArrayOffset(obj: Any) = unsafe.arrayBaseOffset(obj.javaClass)
|
fun getArrayOffset(obj: Any) = unsafe.arrayBaseOffset(obj.javaClass).toLong()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user