Package org.lwjgl.util.harfbuzz
Class hb_var_num_t
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
union hb_var_num_t {
float f;
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionhb_var_num_t(ByteBuffer container) Creates ahb_var_num_tinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic hb_var_num_tcalloc()Returns a newhb_var_num_tinstance allocated withmemCalloc.static hb_var_num_t.Buffercalloc(int capacity) Returns a newhb_var_num_t.Bufferinstance allocated withmemCalloc.static hb_var_num_t.Buffercalloc(int capacity, MemoryStack stack) Returns a newhb_var_num_t.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static hb_var_num_tcalloc(MemoryStack stack) Returns a newhb_var_num_tinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static hb_var_num_tcreate()Returns a newhb_var_num_tinstance allocated withBufferUtils.static hb_var_num_t.Buffercreate(int capacity) Returns a newhb_var_num_t.Bufferinstance allocated withBufferUtils.static hb_var_num_tcreate(long address) Returns a newhb_var_num_tinstance for the specified memory address.static hb_var_num_t.Buffercreate(long address, int capacity) Create ahb_var_num_t.Bufferinstance at the specified memory.static @Nullable hb_var_num_tcreateSafe(long address) static @Nullable hb_var_num_t.BuffercreateSafe(long address, int capacity) floatf()f(float value) Sets the specified value to theffield.i16()shorti16(int index) i16(int index, short value) Sets the specified value at the specified index of thei16field.i16(ShortBuffer value) Copies the specifiedShortBufferto thei16field.inti32()i32(int value) Sets the specified value to thei32field.i8()bytei8(int index) i8(int index, byte value) Sets the specified value at the specified index of thei8field.i8(ByteBuffer value) Copies the specifiedByteBufferto thei8field.static hb_var_num_tmalloc()Returns a newhb_var_num_tinstance allocated withmemAlloc.static hb_var_num_t.Buffermalloc(int capacity) Returns a newhb_var_num_t.Bufferinstance allocated withmemAlloc.static hb_var_num_t.Buffermalloc(int capacity, MemoryStack stack) Returns a newhb_var_num_t.Bufferinstance allocated on the specifiedMemoryStack.static hb_var_num_tmalloc(MemoryStack stack) Returns a newhb_var_num_tinstance allocated on the specifiedMemoryStack.static floatnf(long struct) Unsafe version off().static voidnf(long struct, float value) Unsafe version off.static ShortBufferni16(long struct) Unsafe version ofi16().static shortni16(long struct, int index) Unsafe version ofi16.static voidni16(long struct, int index, short value) Unsafe version ofi16.static voidni16(long struct, ShortBuffer value) Unsafe version ofi16.static intni32(long struct) Unsafe version ofi32().static voidni32(long struct, int value) Unsafe version ofi32.static ByteBufferni8(long struct) Unsafe version ofi8().static byteni8(long struct, int index) Unsafe version ofi8.static voidni8(long struct, int index, byte value) Unsafe version ofi8.static voidni8(long struct, ByteBuffer value) Unsafe version ofi8.static ShortBuffernu16(long struct) Unsafe version ofu16().static shortnu16(long struct, int index) Unsafe version ofu16.static voidnu16(long struct, int index, short value) Unsafe version ofu16.static voidnu16(long struct, ShortBuffer value) Unsafe version ofu16.static intnu32(long struct) Unsafe version ofu32().static voidnu32(long struct, int value) Unsafe version ofu32.static ByteBuffernu8(long struct) Unsafe version ofu8().static bytenu8(long struct, int index) Unsafe version ofu8.static voidnu8(long struct, int index, byte value) Unsafe version ofu8.static voidnu8(long struct, ByteBuffer value) Unsafe version ofu8.set(hb_var_num_t src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).u16()shortu16(int index) u16(int index, short value) Sets the specified value at the specified index of theu16field.u16(ShortBuffer value) Copies the specifiedShortBufferto theu16field.intu32()u32(int value) Sets the specified value to theu32field.u8()byteu8(int index) u8(int index, byte value) Sets the specified value at the specified index of theu8field.u8(ByteBuffer value) Copies the specifiedByteBufferto theu8field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
F
public static final int FThe struct member offsets. -
U32
public static final int U32The struct member offsets. -
I32
public static final int I32The struct member offsets. -
U16
public static final int U16The struct member offsets. -
I16
public static final int I16The struct member offsets. -
U8
public static final int U8The struct member offsets. -
I8
public static final int I8The struct member offsets.
-
-
Constructor Details
-
hb_var_num_t
Creates ahb_var_num_tinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<hb_var_num_t>
-
f
public float f()- Returns:
- the value of the
ffield.
-
u32
public int u32()- Returns:
- the value of the
u32field.
-
i32
public int i32()- Returns:
- the value of the
i32field.
-
u16
- Returns:
- a
ShortBufferview of theu16field.
-
u16
public short u16(int index) - Returns:
- the value at the specified index of the
u16field.
-
i16
- Returns:
- a
ShortBufferview of thei16field.
-
i16
public short i16(int index) - Returns:
- the value at the specified index of the
i16field.
-
u8
- Returns:
- a
ByteBufferview of theu8field.
-
u8
public byte u8(int index) - Returns:
- the value at the specified index of the
u8field.
-
i8
- Returns:
- a
ByteBufferview of thei8field.
-
i8
public byte i8(int index) - Returns:
- the value at the specified index of the
i8field.
-
f
Sets the specified value to theffield. -
u32
Sets the specified value to theu32field. -
i32
Sets the specified value to thei32field. -
u16
Copies the specifiedShortBufferto theu16field. -
u16
Sets the specified value at the specified index of theu16field. -
i16
Copies the specifiedShortBufferto thei16field. -
i16
Sets the specified value at the specified index of thei16field. -
u8
Copies the specifiedByteBufferto theu8field. -
u8
Sets the specified value at the specified index of theu8field. -
i8
Copies the specifiedByteBufferto thei8field. -
i8
Sets the specified value at the specified index of thei8field. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newhb_var_num_tinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newhb_var_num_tinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newhb_var_num_tinstance allocated withBufferUtils. -
create
Returns a newhb_var_num_tinstance for the specified memory address. -
createSafe
-
malloc
Returns a newhb_var_num_t.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newhb_var_num_t.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newhb_var_num_t.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create ahb_var_num_t.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newhb_var_num_tinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newhb_var_num_tinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newhb_var_num_t.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newhb_var_num_t.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nf
public static float nf(long struct) Unsafe version off(). -
nu32
public static int nu32(long struct) Unsafe version ofu32(). -
ni32
public static int ni32(long struct) Unsafe version ofi32(). -
nu16
Unsafe version ofu16(). -
nu16
public static short nu16(long struct, int index) Unsafe version ofu16. -
ni16
Unsafe version ofi16(). -
ni16
public static short ni16(long struct, int index) Unsafe version ofi16. -
nu8
Unsafe version ofu8(). -
nu8
public static byte nu8(long struct, int index) Unsafe version ofu8. -
ni8
Unsafe version ofi8(). -
ni8
public static byte ni8(long struct, int index) Unsafe version ofi8. -
nf
public static void nf(long struct, float value) Unsafe version off. -
nu32
public static void nu32(long struct, int value) Unsafe version ofu32. -
ni32
public static void ni32(long struct, int value) Unsafe version ofi32. -
nu16
Unsafe version ofu16. -
nu16
public static void nu16(long struct, int index, short value) Unsafe version ofu16. -
ni16
Unsafe version ofi16. -
ni16
public static void ni16(long struct, int index, short value) Unsafe version ofi16. -
nu8
Unsafe version ofu8. -
nu8
public static void nu8(long struct, int index, byte value) Unsafe version ofu8. -
ni8
Unsafe version ofi8. -
ni8
public static void ni8(long struct, int index, byte value) Unsafe version ofi8.
-