public class IntBufferBatchMountItem extends java.lang.Object implements MountItem
MountItem
s, represented directly as int buffers to
remove the need for actual MountItem instances.
An IntBufferBatchMountItem batch contains an array of ints, indicating the mount actions that should be taken, and a size; as well as an array of Objects, and a corresponding array size, for any data that cannot be passed as a raw int.
The purpose of encapsulating the array of MountItems this way, is to reduce the amount of allocations in C++ and JNI round-trips.
Constructor and Description |
---|
IntBufferBatchMountItem(int rootTag,
ThemedReactContext context,
int[] intBuf,
java.lang.Object[] objBuf,
int commitNumber) |
Modifier and Type | Method and Description |
---|---|
void |
execute(MountingManager mountingManager)
Execute this
MountItem into the operation queue received by parameter. |
int |
getRootTag() |
boolean |
shouldSchedule() |
java.lang.String |
toString() |
public IntBufferBatchMountItem(int rootTag, ThemedReactContext context, int[] intBuf, java.lang.Object[] objBuf, int commitNumber)
public void execute(MountingManager mountingManager)
MountItem
MountItem
into the operation queue received by parameter.public int getRootTag()
public boolean shouldSchedule()
public java.lang.String toString()
toString
in class java.lang.Object