Class EXRAttribute

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class EXRAttribute
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     struct EXRAttribute {
         char name[256];
         char type[256];
         unsigned char * value;
         int size;
         char[4];
     }
    • Nested Class Summary

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

        org.lwjgl.system.Pointer.Default
      • Nested classes/interfaces inherited from class org.lwjgl.system.Struct

        org.lwjgl.system.Struct.StructValidation
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int NAME
      SIZE
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      static int TYPE
      VALUE
      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
      EXRAttribute​(java.nio.ByteBuffer container)
      Creates a EXRAttribute instance at the current position of the specified ByteBuffer container.
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • NAME, TYPE, VALUE, SIZE

        The struct member offsets.
    • Constructor Detail

      • EXRAttribute

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

        public java.nio.ByteBuffer name()
        Returns:
        a ByteBuffer view of the name field.
      • nameString

        public java.lang.String nameString()
        Returns:
        the null-terminated string stored in the name field.
      • type

        public java.nio.ByteBuffer type()
        Returns:
        a ByteBuffer view of the type field.
      • typeString

        public java.lang.String typeString()
        Returns:
        the null-terminated string stored in the type field.
      • value

        @Nullable
        public java.nio.ByteBuffer value()
        Returns:
        a ByteBuffer view of the data pointed to by the value field.
      • size

        public int size()
        Returns:
        the value of the size field.
      • name

        public EXRAttribute name​(java.nio.ByteBuffer value)
        Copies the specified encoded string to the name field.
      • type

        public EXRAttribute type​(java.nio.ByteBuffer value)
        Copies the specified encoded string to the type field.
      • value

        public EXRAttribute value​(@Nullable
                                  java.nio.ByteBuffer value)
        Sets the address of the specified ByteBuffer to the value field.
      • set

        public EXRAttribute set​(java.nio.ByteBuffer name,
                                java.nio.ByteBuffer type,
                                @Nullable
                                java.nio.ByteBuffer value)
        Initializes this struct with the specified values.
      • set

        public EXRAttribute set​(EXRAttribute src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

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

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

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

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

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

        public static EXRAttribute.Buffer malloc​(int capacity)
        Returns a new EXRAttribute.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • calloc

        public static EXRAttribute.Buffer calloc​(int capacity)
        Returns a new EXRAttribute.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • create

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

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

        @Deprecated
        public static EXRAttribute mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static EXRAttribute callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

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

        public static EXRAttribute calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new EXRAttribute instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • malloc

        public static EXRAttribute.Buffer malloc​(int capacity,
                                                 org.lwjgl.system.MemoryStack stack)
        Returns a new EXRAttribute.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static EXRAttribute.Buffer calloc​(int capacity,
                                                 org.lwjgl.system.MemoryStack stack)
        Returns a new EXRAttribute.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nname

        public static java.nio.ByteBuffer nname​(long struct)
        Unsafe version of name().
      • nnameString

        public static java.lang.String nnameString​(long struct)
        Unsafe version of nameString().
      • ntype

        public static java.nio.ByteBuffer ntype​(long struct)
        Unsafe version of type().
      • ntypeString

        public static java.lang.String ntypeString​(long struct)
        Unsafe version of typeString().
      • nvalue

        @Nullable
        public static java.nio.ByteBuffer nvalue​(long struct)
        Unsafe version of value.
      • nsize

        public static int nsize​(long struct)
        Unsafe version of size().
      • nname

        public static void nname​(long struct,
                                 java.nio.ByteBuffer value)
        Unsafe version of name.
      • ntype

        public static void ntype​(long struct,
                                 java.nio.ByteBuffer value)
        Unsafe version of type.
      • nvalue

        public static void nvalue​(long struct,
                                  @Nullable
                                  java.nio.ByteBuffer value)
        Unsafe version of value.
      • nsize

        public static void nsize​(long struct,
                                 int value)
        Sets the specified value to the size field of the specified struct.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate