Class VREventChaperone

  • All Implemented Interfaces:
    Pointer

    public class VREventChaperone
    extends Struct

    Layout

    
     struct VREvent_Chaperone_t {
         uint64_t m_nPreviousUniverse;
         uint64_t m_nCurrentUniverse;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • M_NPREVIOUSUNIVERSE, M_NCURRENTUNIVERSE

        The struct member offsets.
    • Constructor Detail

      • VREventChaperone

        public VREventChaperone​(java.nio.ByteBuffer container)
        Creates a VREventChaperone instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • m_nPreviousUniverse

        public long m_nPreviousUniverse()
        Returns the value of the m_nPreviousUniverse field.
      • m_nCurrentUniverse

        public long m_nCurrentUniverse()
        Returns the value of the m_nCurrentUniverse field.
      • createSafe

        @Nullable
        public static VREventChaperone createSafe​(long address)
        Like create, but returns null if address is NULL.
      • createSafe

        @Nullable
        public static VREventChaperone.Buffer createSafe​(long address,
                                                         int capacity)
        Like create, but returns null if address is NULL.
      • nm_nPreviousUniverse

        public static long nm_nPreviousUniverse​(long struct)
        Unsafe version of m_nPreviousUniverse().
      • nm_nCurrentUniverse

        public static long nm_nCurrentUniverse​(long struct)
        Unsafe version of m_nCurrentUniverse().