Class hb_var_int_t

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

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

Layout


 union hb_var_int_t {
     uint32_t u32;
     int32_t i32;
     uint16_t u16[2];
     int16_t i16[2];
     uint8_t u8[4];
     int8_t i8[4];
 }
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An array of hb_var_int_t 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 member offsets.
    static final int
    The struct size in bytes.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    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
    Creates a hb_var_int_t instance at the current position of the specified ByteBuffer container.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a new hb_var_int_t instance allocated with memCalloc.
    calloc(int capacity)
    Returns a new hb_var_int_t.Buffer instance allocated with memCalloc.
    calloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new hb_var_int_t.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
    calloc(org.lwjgl.system.MemoryStack stack)
    Returns a new hb_var_int_t instance allocated on the specified MemoryStack and initializes all its bits to zero.
    Returns a new hb_var_int_t instance allocated with BufferUtils.
    create(int capacity)
    Returns a new hb_var_int_t.Buffer instance allocated with BufferUtils.
    create(long address)
    Returns a new hb_var_int_t instance for the specified memory address.
    create(long address, int capacity)
    Create a hb_var_int_t.Buffer instance at the specified memory.
    static @Nullable hb_var_int_t
    createSafe(long address)
    Like create, but returns null if address is NULL.
    static @Nullable hb_var_int_t.Buffer
    createSafe(long address, int capacity)
    Like create, but returns null if address is NULL.
    i16()
     
    short
    i16(int index)
     
    i16(int index, short value)
    Sets the specified value at the specified index of the i16 field.
    Copies the specified ShortBuffer to the i16 field.
    int
    i32()
     
    i32(int value)
    Sets the specified value to the i32 field.
    i8()
     
    byte
    i8(int index)
     
    i8(int index, byte value)
    Sets the specified value at the specified index of the i8 field.
    i8(ByteBuffer value)
    Copies the specified ByteBuffer to the i8 field.
    Returns a new hb_var_int_t instance allocated with memAlloc.
    malloc(int capacity)
    Returns a new hb_var_int_t.Buffer instance allocated with memAlloc.
    malloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new hb_var_int_t.Buffer instance allocated on the specified MemoryStack.
    malloc(org.lwjgl.system.MemoryStack stack)
    Returns a new hb_var_int_t instance allocated on the specified MemoryStack.
    ni16(long struct)
    Unsafe version of i16().
    static short
    ni16(long struct, int index)
    Unsafe version of i16.
    static void
    ni16(long struct, int index, short value)
    Unsafe version of i16.
    static void
    ni16(long struct, ShortBuffer value)
    Unsafe version of i16.
    static int
    ni32(long struct)
    Unsafe version of i32().
    static void
    ni32(long struct, int value)
    Unsafe version of i32.
    static ByteBuffer
    ni8(long struct)
    Unsafe version of i8().
    static byte
    ni8(long struct, int index)
    Unsafe version of i8.
    static void
    ni8(long struct, int index, byte value)
    Unsafe version of i8.
    static void
    ni8(long struct, ByteBuffer value)
    Unsafe version of i8.
    nu16(long struct)
    Unsafe version of u16().
    static short
    nu16(long struct, int index)
    Unsafe version of u16.
    static void
    nu16(long struct, int index, short value)
    Unsafe version of u16.
    static void
    nu16(long struct, ShortBuffer value)
    Unsafe version of u16.
    static int
    nu32(long struct)
    Unsafe version of u32().
    static void
    nu32(long struct, int value)
    Unsafe version of u32.
    static ByteBuffer
    nu8(long struct)
    Unsafe version of u8().
    static byte
    nu8(long struct, int index)
    Unsafe version of u8.
    static void
    nu8(long struct, int index, byte value)
    Unsafe version of u8.
    static void
    nu8(long struct, ByteBuffer value)
    Unsafe version of u8.
    Copies the specified struct data to this struct.
    int
     
    u16()
     
    short
    u16(int index)
     
    u16(int index, short value)
    Sets the specified value at the specified index of the u16 field.
    Copies the specified ShortBuffer to the u16 field.
    int
    u32()
     
    u32(int value)
    Sets the specified value to the u32 field.
    u8()
     
    byte
    u8(int index)
     
    u8(int index, byte value)
    Sets the specified value at the specified index of the u8 field.
    u8(ByteBuffer value)
    Copies the specified ByteBuffer to the u8 field.

    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.
    • U32

      public static final int U32
      The struct member offsets.
    • I32

      public static final int I32
      The struct member offsets.
    • U16

      public static final int U16
      The struct member offsets.
    • I16

      public static final int I16
      The struct member offsets.
    • U8

      public static final int U8
      The struct member offsets.
    • I8

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

    • hb_var_int_t

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

      public int u32()
      Returns:
      the value of the u32 field.
    • i32

      public int i32()
      Returns:
      the value of the i32 field.
    • u16

      public ShortBuffer u16()
      Returns:
      a ShortBuffer view of the u16 field.
    • u16

      public short u16(int index)
      Returns:
      the value at the specified index of the u16 field.
    • i16

      public ShortBuffer i16()
      Returns:
      a ShortBuffer view of the i16 field.
    • i16

      public short i16(int index)
      Returns:
      the value at the specified index of the i16 field.
    • u8

      public ByteBuffer u8()
      Returns:
      a ByteBuffer view of the u8 field.
    • u8

      public byte u8(int index)
      Returns:
      the value at the specified index of the u8 field.
    • i8

      public ByteBuffer i8()
      Returns:
      a ByteBuffer view of the i8 field.
    • i8

      public byte i8(int index)
      Returns:
      the value at the specified index of the i8 field.
    • u32

      public hb_var_int_t u32(int value)
      Sets the specified value to the u32 field.
    • i32

      public hb_var_int_t i32(int value)
      Sets the specified value to the i32 field.
    • u16

      public hb_var_int_t u16(ShortBuffer value)
      Copies the specified ShortBuffer to the u16 field.
    • u16

      public hb_var_int_t u16(int index, short value)
      Sets the specified value at the specified index of the u16 field.
    • i16

      public hb_var_int_t i16(ShortBuffer value)
      Copies the specified ShortBuffer to the i16 field.
    • i16

      public hb_var_int_t i16(int index, short value)
      Sets the specified value at the specified index of the i16 field.
    • u8

      public hb_var_int_t u8(ByteBuffer value)
      Copies the specified ByteBuffer to the u8 field.
    • u8

      public hb_var_int_t u8(int index, byte value)
      Sets the specified value at the specified index of the u8 field.
    • i8

      public hb_var_int_t i8(ByteBuffer value)
      Copies the specified ByteBuffer to the i8 field.
    • i8

      public hb_var_int_t i8(int index, byte value)
      Sets the specified value at the specified index of the i8 field.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nu32(long struct)
      Unsafe version of u32().
    • ni32

      public static int ni32(long struct)
      Unsafe version of i32().
    • nu16

      public static ShortBuffer nu16(long struct)
      Unsafe version of u16().
    • nu16

      public static short nu16(long struct, int index)
      Unsafe version of u16.
    • ni16

      public static ShortBuffer ni16(long struct)
      Unsafe version of i16().
    • ni16

      public static short ni16(long struct, int index)
      Unsafe version of i16.
    • nu8

      public static ByteBuffer nu8(long struct)
      Unsafe version of u8().
    • nu8

      public static byte nu8(long struct, int index)
      Unsafe version of u8.
    • ni8

      public static ByteBuffer ni8(long struct)
      Unsafe version of i8().
    • ni8

      public static byte ni8(long struct, int index)
      Unsafe version of i8.
    • nu32

      public static void nu32(long struct, int value)
      Unsafe version of u32.
    • ni32

      public static void ni32(long struct, int value)
      Unsafe version of i32.
    • nu16

      public static void nu16(long struct, ShortBuffer value)
      Unsafe version of u16.
    • nu16

      public static void nu16(long struct, int index, short value)
      Unsafe version of u16.
    • ni16

      public static void ni16(long struct, ShortBuffer value)
      Unsafe version of i16.
    • ni16

      public static void ni16(long struct, int index, short value)
      Unsafe version of i16.
    • nu8

      public static void nu8(long struct, ByteBuffer value)
      Unsafe version of u8.
    • nu8

      public static void nu8(long struct, int index, byte value)
      Unsafe version of u8.
    • ni8

      public static void ni8(long struct, ByteBuffer value)
      Unsafe version of i8.
    • ni8

      public static void ni8(long struct, int index, byte value)
      Unsafe version of i8.