Package org.robolectric.nativeruntime
Class NIOAccess
java.lang.Object
org.robolectric.nativeruntime.NIOAccess
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
elementSizeShift
(Buffer buffer) The Android version of java.nio.Buffer has an extra final field called _elementSizeShift that only depend on the implementation of the buffer.static long
Returns the underlying native pointer to the data of the given Buffer starting at the Buffer's current position, or 0 if the Buffer is not backed by native heap storage.
-
Method Details
-
getBasePointer
Returns the underlying native pointer to the data of the given Buffer starting at the Buffer's current position, or 0 if the Buffer is not backed by native heap storage. -
elementSizeShift
The Android version of java.nio.Buffer has an extra final field called _elementSizeShift that only depend on the implementation of the buffer. This method can be called instead when wanting to access the value of that field on the JVM.
-