Package org.lwjgl.sdl

Class SDL_PathInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SDL_PathInfo extends Struct<SDL_PathInfo> implements NativeResource

 struct SDL_PathInfo {
     SDL_PathType type;
     Uint64 size;
     SDL_Time create_time;
     SDL_Time modify_time;
     SDL_Time access_time;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int TYPE
      The struct member offsets.
    • SIZE

      public static final int SIZE
      The struct member offsets.
    • CREATE_TIME

      public static final int CREATE_TIME
      The struct member offsets.
    • MODIFY_TIME

      public static final int MODIFY_TIME
      The struct member offsets.
    • ACCESS_TIME

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

    • SDL_PathInfo

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

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

      public long size()
      Returns:
      the value of the size field.
    • create_time

      public long create_time()
      Returns:
      the value of the create_time field.
    • modify_time

      public long modify_time()
      Returns:
      the value of the modify_time field.
    • access_time

      public long access_time()
      Returns:
      the value of the access_time field.
    • type

      public SDL_PathInfo type(int value)
      Sets the specified value to the type field.
    • size

      public SDL_PathInfo size(long value)
      Sets the specified value to the size field.
    • create_time

      public SDL_PathInfo create_time(long value)
      Sets the specified value to the create_time field.
    • modify_time

      public SDL_PathInfo modify_time(long value)
      Sets the specified value to the modify_time field.
    • access_time

      public SDL_PathInfo access_time(long value)
      Sets the specified value to the access_time field.
    • set

      public SDL_PathInfo set(int type, long size, long create_time, long modify_time, long access_time)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static SDL_PathInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new SDL_PathInfo.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
    • ntype

      public static int ntype(long struct)
      Unsafe version of type().
    • nsize

      public static long nsize(long struct)
      Unsafe version of size().
    • ncreate_time

      public static long ncreate_time(long struct)
      Unsafe version of create_time().
    • nmodify_time

      public static long nmodify_time(long struct)
      Unsafe version of modify_time().
    • naccess_time

      public static long naccess_time(long struct)
      Unsafe version of access_time().
    • ntype

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • nsize

      public static void nsize(long struct, long value)
      Unsafe version of size.
    • ncreate_time

      public static void ncreate_time(long struct, long value)
      Unsafe version of create_time.
    • nmodify_time

      public static void nmodify_time(long struct, long value)
      Unsafe version of modify_time.
    • naccess_time

      public static void naccess_time(long struct, long value)
      Unsafe version of access_time.