Class LibDivideU16

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<LibDivideU16>
org.lwjgl.util.libdivide.LibDivideU16
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class LibDivideU16 extends org.lwjgl.system.Struct<LibDivideU16> implements org.lwjgl.system.NativeResource

Layout


 struct libdivide_u16_t {
     uint16_t magic;
     uint8_t more;
 }
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An array of LibDivideU16 structs.

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

    org.lwjgl.system.Struct.StructValidation

    Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The struct alignment in bytes.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct size in bytes.

    Fields inherited from interface org.lwjgl.system.Pointer

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

    Constructors
    Constructor
    Description
    Creates a LibDivideU16 instance at the current position of the specified ByteBuffer container.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a new LibDivideU16 instance allocated with memCalloc.
    calloc(int capacity)
    Returns a new LibDivideU16.Buffer instance allocated with memCalloc.
    calloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new LibDivideU16.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
    calloc(org.lwjgl.system.MemoryStack stack)
    Returns a new LibDivideU16 instance allocated on the specified MemoryStack and initializes all its bits to zero.
    Returns a new LibDivideU16 instance allocated with BufferUtils.
    create(int capacity)
    Returns a new LibDivideU16.Buffer instance allocated with BufferUtils.
    create(long address)
    Returns a new LibDivideU16 instance for the specified memory address.
    create(long address, int capacity)
    Create a LibDivideU16.Buffer instance at the specified memory.
    static @Nullable LibDivideU16
    createSafe(long address)
    Like create, but returns null if address is NULL.
    static @Nullable LibDivideU16.Buffer
    createSafe(long address, int capacity)
    Like create, but returns null if address is NULL.
    short
     
    magic(short value)
    Sets the specified value to the magic field.
    Returns a new LibDivideU16 instance allocated with memAlloc.
    malloc(int capacity)
    Returns a new LibDivideU16.Buffer instance allocated with memAlloc.
    malloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new LibDivideU16.Buffer instance allocated on the specified MemoryStack.
    malloc(org.lwjgl.system.MemoryStack stack)
    Returns a new LibDivideU16 instance allocated on the specified MemoryStack.
    byte
     
    more(byte value)
    Sets the specified value to the more field.
    static short
    nmagic(long struct)
    Unsafe version of magic().
    static void
    nmagic(long struct, short value)
    Unsafe version of magic.
    static byte
    nmore(long struct)
    Unsafe version of more().
    static void
    nmore(long struct, byte value)
    Unsafe version of more.
    set(short magic, byte more)
    Initializes this struct with the specified values.
    Copies the specified struct data to this struct.
    int
     

    Methods inherited from class org.lwjgl.system.Struct

    clear, free, isNull, validate, validate

    Methods inherited from class org.lwjgl.system.Pointer.Default

    address, equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.lwjgl.system.NativeResource

    close, free
  • Field Details

    • SIZEOF

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

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

      public static final int MAGIC
      The struct member offsets.
    • MORE

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

    • LibDivideU16

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

      public short magic()
      Returns:
      the value of the magic field.
    • more

      public byte more()
      Returns:
      the value of the more field.
    • magic

      public LibDivideU16 magic(short value)
      Sets the specified value to the magic field.
    • more

      public LibDivideU16 more(byte value)
      Sets the specified value to the more field.
    • set

      public LibDivideU16 set(short magic, byte more)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static LibDivideU16.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new LibDivideU16.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
    • nmagic

      public static short nmagic(long struct)
      Unsafe version of magic().
    • nmore

      public static byte nmore(long struct)
      Unsafe version of more().
    • nmagic

      public static void nmagic(long struct, short value)
      Unsafe version of magic.
    • nmore

      public static void nmore(long struct, byte value)
      Unsafe version of more.