Class RMTPropertyIterator

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class RMTPropertyIterator extends Struct<RMTPropertyIterator> implements NativeResource

 struct rmtPropertyIterator {
     {@link RMTProperty rmtProperty} * property;
     {@link RMTProperty rmtProperty} * initial;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • PROPERTY

      public static final int PROPERTY
      The struct member offsets.
    • INITIAL

      public static final int INITIAL
      The struct member offsets.
  • Constructor Details

    • RMTPropertyIterator

      public RMTPropertyIterator(ByteBuffer container)
      Creates a RMTPropertyIterator 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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<RMTPropertyIterator>
    • property

      public RMTProperty property()
      Returns:
      a RMTProperty view of the struct pointed to by the property field.
    • malloc

      public static RMTPropertyIterator malloc()
      Returns a new RMTPropertyIterator instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static RMTPropertyIterator calloc()
      Returns a new RMTPropertyIterator instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static RMTPropertyIterator create()
      Returns a new RMTPropertyIterator instance allocated with BufferUtils.
    • create

      public static RMTPropertyIterator create(long address)
      Returns a new RMTPropertyIterator instance for the specified memory address.
    • createSafe

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

      public static RMTPropertyIterator malloc(MemoryStack stack)
      Returns a new RMTPropertyIterator instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static RMTPropertyIterator calloc(MemoryStack stack)
      Returns a new RMTPropertyIterator instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • nproperty

      public static RMTProperty nproperty(long struct)
      Unsafe version of property().
    • ninitial

      public static RMTProperty ninitial(long struct)