Class EXRVersion

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class EXRVersion extends Struct<EXRVersion> implements NativeResource

 struct EXRVersion {
     int version;
     int tiled;
     int long_name;
     int non_image;
     int multipart;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int VERSION
      The struct member offsets.
    • TILED

      public static final int TILED
      The struct member offsets.
    • LONG_NAME

      public static final int LONG_NAME
      The struct member offsets.
    • NON_IMAGE

      public static final int NON_IMAGE
      The struct member offsets.
    • MULTIPART

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

    • EXRVersion

      public EXRVersion(ByteBuffer container)
      Creates a EXRVersion 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<EXRVersion>
    • version

      public int version()
      Returns:
      the value of the version field.
    • tiled

      public boolean tiled()
      Returns:
      the value of the tiled field.
    • long_name

      public boolean long_name()
      Returns:
      the value of the long_name field.
    • non_image

      public boolean non_image()
      Returns:
      the value of the non_image field.
    • multipart

      public boolean multipart()
      Returns:
      the value of the multipart field.
    • version

      public EXRVersion version(int value)
      Sets the specified value to the version field.
    • tiled

      public EXRVersion tiled(boolean value)
      Sets the specified value to the tiled field.
    • long_name

      public EXRVersion long_name(boolean value)
      Sets the specified value to the long_name field.
    • non_image

      public EXRVersion non_image(boolean value)
      Sets the specified value to the non_image field.
    • multipart

      public EXRVersion multipart(boolean value)
      Sets the specified value to the multipart field.
    • set

      public EXRVersion set(int version, boolean tiled, boolean long_name, boolean non_image, boolean multipart)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

      public static EXRVersion.Buffer create(int capacity)
      Returns a new EXRVersion.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

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

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

      @Deprecated public static EXRVersion mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static EXRVersion callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static EXRVersion mallocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static EXRVersion callocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static EXRVersion.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static EXRVersion.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static EXRVersion.Buffer mallocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static EXRVersion.Buffer callocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

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

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

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

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

      public static int nversion(long struct)
      Unsafe version of version().
    • ntiled

      public static int ntiled(long struct)
      Unsafe version of tiled().
    • nlong_name

      public static int nlong_name(long struct)
      Unsafe version of long_name().
    • nnon_image

      public static int nnon_image(long struct)
      Unsafe version of non_image().
    • nmultipart

      public static int nmultipart(long struct)
      Unsafe version of multipart().
    • nversion

      public static void nversion(long struct, int value)
      Unsafe version of version.
    • ntiled

      public static void ntiled(long struct, int value)
      Unsafe version of tiled.
    • nlong_name

      public static void nlong_name(long struct, int value)
      Unsafe version of long_name.
    • nnon_image

      public static void nnon_image(long struct, int value)
      Unsafe version of non_image.
    • nmultipart

      public static void nmultipart(long struct, int value)
      Unsafe version of multipart.