Package 

Class IntBufferBatchMountItem

  • All Implemented Interfaces:
    com.facebook.react.fabric.mounting.mountitems.MountItem

    
    public class IntBufferBatchMountItem
     implements MountItem
                        

    This class represents a batch of MountItems, 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.