Package org.robolectric.nativeruntime
Class NIOAccess
- java.lang.Object
-
- org.robolectric.nativeruntime.NIOAccess
-
public final class NIOAccess extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intelementSizeShift(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 longgetBasePointer(Buffer b)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 Detail
-
getBasePointer
public static long getBasePointer(Buffer b)
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
public static 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. This method can be called instead when wanting to access the value of that field on the JVM.
-
-