Class LLVMOptRemarkStringRef

  • All Implemented Interfaces:
    org.lwjgl.system.Pointer

    public class LLVMOptRemarkStringRef
    extends org.lwjgl.system.Struct
    String containing a buffer and a length. The buffer is not guaranteed to be zero-terminated.

    Layout

    
     struct LLVMOptRemarkStringRef {
         char const * Str;
         uint32_t Len;
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LLVMOptRemarkStringRef.Buffer
      An array of LLVMOptRemarkStringRef structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int LEN
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      static int STR
      The struct member offsets.
      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      LLVMOptRemarkStringRef​(java.nio.ByteBuffer container)
      Creates a LLVMOptRemarkStringRef instance at the current position of the specified ByteBuffer container.
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STR, LEN

        The struct member offsets.
    • Constructor Detail

      • LLVMOptRemarkStringRef

        public LLVMOptRemarkStringRef​(java.nio.ByteBuffer container)
        Creates a LLVMOptRemarkStringRef 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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • Str

        public java.nio.ByteBuffer Str()
        Returns a ByteBuffer view of the null-terminated string pointed to by the Str field.
      • StrString

        public java.lang.String StrString()
        Decodes the null-terminated string pointed to by the Str field.
      • Len

        public int Len()
        Returns the value of the Len field.
      • create

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

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

        public static java.nio.ByteBuffer nStr​(long struct)
        Unsafe version of Str().
      • nStrString

        public static java.lang.String nStrString​(long struct)
        Unsafe version of StrString().
      • nLen

        public static int nLen​(long struct)
        Unsafe version of Len().