Class VREventProperty

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • CONTAINER, PROP

        The struct member offsets.
    • Constructor Detail

      • VREventProperty

        public VREventProperty​(java.nio.ByteBuffer container)
        Creates a VREventProperty 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
      • container

        public long container()
        Returns the value of the container field.
      • prop

        public int prop()
        Returns the value of the prop field.
      • createSafe

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

        public static VREventProperty.Buffer create​(long address,
                                                    int capacity)
        Create a VREventProperty.Buffer instance at the specified memory.
        Parameters:
        address - the memory address
        capacity - the buffer capacity
      • createSafe

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

        public static long ncontainer​(long struct)
        Unsafe version of container().
      • nprop

        public static int nprop​(long struct)
        Unsafe version of prop().