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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 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
ConstructorsConstructorDescriptionhb_var_num_t
(ByteBuffer container) Creates ahb_var_num_t
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic hb_var_num_t
calloc()
Returns a newhb_var_num_t
instance allocated withmemCalloc
.static hb_var_num_t.Buffer
calloc
(int capacity) Returns a newhb_var_num_t.Buffer
instance allocated withmemCalloc
.static hb_var_num_t.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newhb_var_num_t.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static hb_var_num_t
calloc
(MemoryStack stack) Returns a newhb_var_num_t
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static hb_var_num_t
create()
Returns a newhb_var_num_t
instance allocated withBufferUtils
.static hb_var_num_t.Buffer
create
(int capacity) Returns a newhb_var_num_t.Buffer
instance allocated withBufferUtils
.static hb_var_num_t
create
(long address) Returns a newhb_var_num_t
instance for the specified memory address.static hb_var_num_t.Buffer
create
(long address, int capacity) Create ahb_var_num_t.Buffer
instance at the specified memory.static @Nullable hb_var_num_t
createSafe
(long address) static @Nullable hb_var_num_t.Buffer
createSafe
(long address, int capacity) float
f()
f
(float value) Sets the specified value to thef
field.i16()
short
i16
(int index) i16
(int index, short value) Sets the specified value at the specified index of thei16
field.i16
(ShortBuffer value) Copies the specifiedShortBuffer
to thei16
field.int
i32()
i32
(int value) Sets the specified value to thei32
field.i8()
byte
i8
(int index) i8
(int index, byte value) Sets the specified value at the specified index of thei8
field.i8
(ByteBuffer value) Copies the specifiedByteBuffer
to thei8
field.static hb_var_num_t
malloc()
Returns a newhb_var_num_t
instance allocated withmemAlloc
.static hb_var_num_t.Buffer
malloc
(int capacity) Returns a newhb_var_num_t.Buffer
instance allocated withmemAlloc
.static hb_var_num_t.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newhb_var_num_t.Buffer
instance allocated on the specifiedMemoryStack
.static hb_var_num_t
malloc
(MemoryStack stack) Returns a newhb_var_num_t
instance allocated on the specifiedMemoryStack
.static float
nf
(long struct) Unsafe version off()
.static void
nf
(long struct, float value) Unsafe version off
.static ShortBuffer
ni16
(long struct) Unsafe version ofi16()
.static short
ni16
(long struct, int index) Unsafe version ofi16
.static void
ni16
(long struct, int index, short value) Unsafe version ofi16
.static void
ni16
(long struct, ShortBuffer value) Unsafe version ofi16
.static int
ni32
(long struct) Unsafe version ofi32()
.static void
ni32
(long struct, int value) Unsafe version ofi32
.static ByteBuffer
ni8
(long struct) Unsafe version ofi8()
.static byte
ni8
(long struct, int index) Unsafe version ofi8
.static void
ni8
(long struct, int index, byte value) Unsafe version ofi8
.static void
ni8
(long struct, ByteBuffer value) Unsafe version ofi8
.static ShortBuffer
nu16
(long struct) Unsafe version ofu16()
.static short
nu16
(long struct, int index) Unsafe version ofu16
.static void
nu16
(long struct, int index, short value) Unsafe version ofu16
.static void
nu16
(long struct, ShortBuffer value) Unsafe version ofu16
.static int
nu32
(long struct) Unsafe version ofu32()
.static void
nu32
(long struct, int value) Unsafe version ofu32
.static ByteBuffer
nu8
(long struct) Unsafe version ofu8()
.static byte
nu8
(long struct, int index) Unsafe version ofu8
.static void
nu8
(long struct, int index, byte value) Unsafe version ofu8
.static void
nu8
(long struct, ByteBuffer value) Unsafe version ofu8
.set
(hb_var_num_t src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.u16()
short
u16
(int index) u16
(int index, short value) Sets the specified value at the specified index of theu16
field.u16
(ShortBuffer value) Copies the specifiedShortBuffer
to theu16
field.int
u32()
u32
(int value) Sets the specified value to theu32
field.u8()
byte
u8
(int index) u8
(int index, byte value) Sets the specified value at the specified index of theu8
field.u8
(ByteBuffer value) Copies the specifiedByteBuffer
to theu8
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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_t
instance at the current position of the specifiedByteBuffer
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
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<hb_var_num_t>
-
f
public float f()- Returns:
- the value of the
f
field.
-
u32
public int u32()- Returns:
- the value of the
u32
field.
-
i32
public int i32()- Returns:
- the value of the
i32
field.
-
u16
- Returns:
- a
ShortBuffer
view of theu16
field.
-
u16
public short u16(int index) - Returns:
- the value at the specified index of the
u16
field.
-
i16
- Returns:
- a
ShortBuffer
view of thei16
field.
-
i16
public short i16(int index) - Returns:
- the value at the specified index of the
i16
field.
-
u8
- Returns:
- a
ByteBuffer
view of theu8
field.
-
u8
public byte u8(int index) - Returns:
- the value at the specified index of the
u8
field.
-
i8
- Returns:
- a
ByteBuffer
view of thei8
field.
-
i8
public byte i8(int index) - Returns:
- the value at the specified index of the
i8
field.
-
f
Sets the specified value to thef
field. -
u32
Sets the specified value to theu32
field. -
i32
Sets the specified value to thei32
field. -
u16
Copies the specifiedShortBuffer
to theu16
field. -
u16
Sets the specified value at the specified index of theu16
field. -
i16
Copies the specifiedShortBuffer
to thei16
field. -
i16
Sets the specified value at the specified index of thei16
field. -
u8
Copies the specifiedByteBuffer
to theu8
field. -
u8
Sets the specified value at the specified index of theu8
field. -
i8
Copies the specifiedByteBuffer
to thei8
field. -
i8
Sets the specified value at the specified index of thei8
field. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newhb_var_num_t
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newhb_var_num_t
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newhb_var_num_t
instance allocated withBufferUtils
. -
create
Returns a newhb_var_num_t
instance for the specified memory address. -
createSafe
-
malloc
Returns a newhb_var_num_t.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newhb_var_num_t.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newhb_var_num_t.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create ahb_var_num_t.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newhb_var_num_t
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newhb_var_num_t
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newhb_var_num_t.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newhb_var_num_t.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-