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
    • 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.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static EXRAttribute calloc()
      Returns a new EXRAttribute instance allocated with memCalloc.
      static EXRAttribute.Buffer calloc​(int capacity)
      Returns a new EXRAttribute.Buffer instance allocated with memCalloc.
      static EXRAttribute callocStack()
      Returns a new EXRAttribute instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      static EXRAttribute.Buffer callocStack​(int capacity)
      Returns a new EXRAttribute.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      static EXRAttribute.Buffer callocStack​(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.
      static EXRAttribute callocStack​(org.lwjgl.system.MemoryStack stack)
      Returns a new EXRAttribute instance allocated on the specified MemoryStack and initializes all its bits to zero.
      static EXRAttribute create()
      Returns a new EXRAttribute instance allocated with BufferUtils.
      static EXRAttribute.Buffer create​(int capacity)
      Returns a new EXRAttribute.Buffer instance allocated with BufferUtils.
      static EXRAttribute create​(long address)
      Returns a new EXRAttribute instance for the specified memory address.
      static EXRAttribute.Buffer create​(long address, int capacity)
      Create a EXRAttribute.Buffer instance at the specified memory.
      static EXRAttribute createSafe​(long address)
      Like create, but returns null if address is NULL.
      static EXRAttribute.Buffer createSafe​(long address, int capacity)
      Like create, but returns null if address is NULL.
      static EXRAttribute malloc()
      Returns a new EXRAttribute instance allocated with memAlloc.
      static EXRAttribute.Buffer malloc​(int capacity)
      Returns a new EXRAttribute.Buffer instance allocated with memAlloc.
      static EXRAttribute mallocStack()
      Returns a new EXRAttribute instance allocated on the thread-local MemoryStack.
      static EXRAttribute.Buffer mallocStack​(int capacity)
      Returns a new EXRAttribute.Buffer instance allocated on the thread-local MemoryStack.
      static EXRAttribute.Buffer mallocStack​(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new EXRAttribute.Buffer instance allocated on the specified MemoryStack.
      static EXRAttribute mallocStack​(org.lwjgl.system.MemoryStack stack)
      Returns a new EXRAttribute instance allocated on the specified MemoryStack.
      java.nio.ByteBuffer name()
      Returns a ByteBuffer view of the name field.
      EXRAttribute name​(java.nio.ByteBuffer value)
      Copies the specified encoded string to the name field.
      java.lang.String nameString()
      Decodes the null-terminated string stored in the name field.
      static java.nio.ByteBuffer nname​(long struct)
      Unsafe version of name().
      static void nname​(long struct, java.nio.ByteBuffer value)
      Unsafe version of name.
      static java.lang.String nnameString​(long struct)
      Unsafe version of nameString().
      static int nsize​(long struct)
      Unsafe version of size().
      static void nsize​(long struct, int value)
      Sets the specified value to the size field of the specified struct.
      static java.nio.ByteBuffer ntype​(long struct)
      Unsafe version of type().
      static void ntype​(long struct, java.nio.ByteBuffer value)
      Unsafe version of type.
      static java.lang.String ntypeString​(long struct)
      Unsafe version of typeString().
      static java.nio.ByteBuffer nvalue​(long struct)
      Unsafe version of value.
      static void nvalue​(long struct, java.nio.ByteBuffer value)
      Unsafe version of value.
      EXRAttribute set​(java.nio.ByteBuffer name, java.nio.ByteBuffer type, java.nio.ByteBuffer value)
      Initializes this struct with the specified values.
      EXRAttribute set​(EXRAttribute src)
      Copies the specified struct data to this struct.
      int size()
      Returns the value of the size field.
      int sizeof()  
      java.nio.ByteBuffer type()
      Returns a ByteBuffer view of the type field.
      EXRAttribute type​(java.nio.ByteBuffer value)
      Copies the specified encoded string to the type field.
      java.lang.String typeString()
      Decodes the null-terminated string stored in the type field.
      static void validate​(long struct)
      Validates pointer members that should not be NULL.
      static void validate​(long array, int count)
      Calls validate(long) for each struct contained in the specified struct array.
      java.nio.ByteBuffer value()
      Returns a ByteBuffer view of the data pointed to by the value field.
      EXRAttribute value​(java.nio.ByteBuffer value)
      Sets the address of the specified ByteBuffer to the value field.
      • Methods inherited from interface org.lwjgl.system.NativeResource

        close, free
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from class org.lwjgl.system.Pointer.Default

        address, equals, hashCode, toString
      • Methods inherited from class org.lwjgl.system.Struct

        clear, free, isNull
    • 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()
        Decodes 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()
        Decodes 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

        public static EXRAttribute mallocStack()
        Returns a new EXRAttribute instance allocated on the thread-local MemoryStack.
      • callocStack

        public static EXRAttribute callocStack()
        Returns a new EXRAttribute instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

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

        public static EXRAttribute callocStack​(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
      • mallocStack

        public static EXRAttribute.Buffer mallocStack​(int capacity)
        Returns a new EXRAttribute.Buffer instance allocated on the thread-local MemoryStack.
        Parameters:
        capacity - the buffer capacity
      • callocStack

        public static EXRAttribute.Buffer callocStack​(int capacity)
        Returns a new EXRAttribute.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • mallocStack

        public static EXRAttribute.Buffer mallocStack​(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
      • callocStack

        public static EXRAttribute.Buffer callocStack​(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
      • validate

        public static void validate​(long array,
                                    int count)
        Calls validate(long) for each struct contained in the specified struct array.
        Parameters:
        array - the struct array to validate
        count - the number of structs in array