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];
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | hb_var_num_t.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | F
The struct member offsets. |
| public static final int | I16
The struct member offsets. |
| public static final int | I32
The struct member offsets. |
| public static final int | I8
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | U16
The struct member offsets. |
| public static final int | U32
The struct member offsets. |
| public static final int | U8
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | hb_var_num_t(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static hb_var_num_t | |
| public static hb_var_num_t. | calloc(int
the buffer capacity capacity)Returns a new |
| public static hb_var_num_t | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static hb_var_num_t. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected hb_var_num_t | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static hb_var_num_t | |
| public static hb_var_num_t | |
| public static hb_var_num_t. | create(int
the buffer capacity capacity)Returns a new |
| public static hb_var_num_t. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static hb_var_num_t | |
| public static hb_var_num_t. | |
| public float | |
| public hb_var_num_t | |
| public ShortBuffer | |
| public short | |
| public hb_var_num_t | |
| public hb_var_num_t | |
| public int | |
| public hb_var_num_t | |
| public ByteBuffer | |
| public byte | |
| public hb_var_num_t | |
| public hb_var_num_t | |
| public static hb_var_num_t | |
| public static hb_var_num_t. | malloc(int
the buffer capacity capacity)Returns a new |
| public static hb_var_num_t | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static hb_var_num_t. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static float | |
| public static void | |
| public static ShortBuffer | |
| public static short | |
| public static void | |
| public static void | |
| public static int | |
| public static void | |
| public static ByteBuffer | |
| public static byte | |
| public static void | |
| public static void | |
| public static ShortBuffer | |
| public static short | |
| public static void | |
| public static void | |
| public static int | |
| public static void | |
| public static ByteBuffer | |
| public static byte | |
| public static void | |
| public static void | |
| public hb_var_num_t | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public ShortBuffer | |
| public short | |
| public hb_var_num_t | |
| public hb_var_num_t | |
| public int | |
| public hb_var_num_t | |
| public ByteBuffer | |
| public byte | |
| public hb_var_num_t | |
| public hb_var_num_t |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| F | back to summary |
|---|---|
| public static final int F The struct member offsets. | |
| I16 | back to summary |
|---|---|
| public static final int I16 The struct member offsets. | |
| I32 | back to summary |
|---|---|
| public static final int I32 The struct member offsets. | |
| I8 | back to summary |
|---|---|
| public static final int I8 The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| U16 | back to summary |
|---|---|
| public static final int U16 The struct member offsets. | |
| U32 | back to summary |
|---|---|
| public static final int U32 The struct member offsets. | |
| U8 | back to summary |
|---|---|
| public static final int U8 The struct member offsets. | |
| hb_var_num_t | back to summary |
|---|---|
| protected hb_var_num_t(long address, ByteBuffer container) | |
| hb_var_num_t | back to summary |
|---|---|
| public hb_var_num_t(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static hb_var_num_t calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static hb_var_num_t. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static hb_var_num_t calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static hb_var_num_t. Returns a new
| |
| create | back to summary |
|---|---|
| protected hb_var_num_t create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static hb_var_num_t create() Returns a new | |
| create | back to summary |
|---|---|
| public static hb_var_num_t create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static hb_var_num_t. Returns a new
| |
| create | back to summary |
|---|---|
| public static hb_var_num_t. Create a
| |
| createSafe | back to summary |
|---|---|
| public static hb_var_num_t createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static hb_var_num_t. Like
| |
| f | back to summary |
|---|---|
public float f()
| |
| f | back to summary |
|---|---|
| public hb_var_num_t f(float value) Sets the specified value to the | |
| i16 | back to summary |
|---|---|
public ShortBuffer i16()
| |
| i16 | back to summary |
|---|---|
public short i16(int index)
| |
| i16 | back to summary |
|---|---|
| public hb_var_num_t i16(ShortBuffer value) Copies the specified | |
| i16 | back to summary |
|---|---|
| public hb_var_num_t i16(int index, short value) Sets the specified value at the specified index of the | |
| i32 | back to summary |
|---|---|
public int i32()
| |
| i32 | back to summary |
|---|---|
| public hb_var_num_t i32(int value) Sets the specified value to the | |
| i8 | back to summary |
|---|---|
public ByteBuffer i8()
| |
| i8 | back to summary |
|---|---|
public byte i8(int index)
| |
| i8 | back to summary |
|---|---|
| public hb_var_num_t i8(ByteBuffer value) Copies the specified | |
| i8 | back to summary |
|---|---|
| public hb_var_num_t i8(int index, byte value) Sets the specified value at the specified index of the | |
| malloc | back to summary |
|---|---|
| public static hb_var_num_t malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static hb_var_num_t. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static hb_var_num_t malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static hb_var_num_t. Returns a new
| |
| nf | back to summary |
|---|---|
| public static float nf(long struct) Unsafe version of | |
| nf | back to summary |
|---|---|
| public static void nf(long struct, float value) Unsafe version of | |
| ni16 | back to summary |
|---|---|
| public static ShortBuffer ni16(long struct) Unsafe version of | |
| ni16 | back to summary |
|---|---|
| public static short ni16(long struct, int index) Unsafe version of | |
| ni16 | back to summary |
|---|---|
| public static void ni16(long struct, ShortBuffer value) Unsafe version of | |
| ni16 | back to summary |
|---|---|
| public static void ni16(long struct, int index, short value) Unsafe version of | |
| ni32 | back to summary |
|---|---|
| public static int ni32(long struct) Unsafe version of | |
| ni32 | back to summary |
|---|---|
| public static void ni32(long struct, int value) Unsafe version of | |
| ni8 | back to summary |
|---|---|
| public static ByteBuffer ni8(long struct) Unsafe version of | |
| ni8 | back to summary |
|---|---|
| public static byte ni8(long struct, int index) Unsafe version of | |
| ni8 | back to summary |
|---|---|
| public static void ni8(long struct, ByteBuffer value) Unsafe version of | |
| ni8 | back to summary |
|---|---|
| public static void ni8(long struct, int index, byte value) Unsafe version of | |
| nu16 | back to summary |
|---|---|
| public static ShortBuffer nu16(long struct) Unsafe version of | |
| nu16 | back to summary |
|---|---|
| public static short nu16(long struct, int index) Unsafe version of | |
| nu16 | back to summary |
|---|---|
| public static void nu16(long struct, ShortBuffer value) Unsafe version of | |
| nu16 | back to summary |
|---|---|
| public static void nu16(long struct, int index, short value) Unsafe version of | |
| nu32 | back to summary |
|---|---|
| public static int nu32(long struct) Unsafe version of | |
| nu32 | back to summary |
|---|---|
| public static void nu32(long struct, int value) Unsafe version of | |
| nu8 | back to summary |
|---|---|
| public static ByteBuffer nu8(long struct) Unsafe version of | |
| nu8 | back to summary |
|---|---|
| public static byte nu8(long struct, int index) Unsafe version of | |
| nu8 | back to summary |
|---|---|
| public static void nu8(long struct, ByteBuffer value) Unsafe version of | |
| nu8 | back to summary |
|---|---|
| public static void nu8(long struct, int index, byte value) Unsafe version of | |
| set | back to summary |
|---|---|
| public hb_var_num_t set(hb_var_num_t src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| u16 | back to summary |
|---|---|
public ShortBuffer u16()
| |
| u16 | back to summary |
|---|---|
public short u16(int index)
| |
| u16 | back to summary |
|---|---|
| public hb_var_num_t u16(ShortBuffer value) Copies the specified | |
| u16 | back to summary |
|---|---|
| public hb_var_num_t u16(int index, short value) Sets the specified value at the specified index of the | |
| u32 | back to summary |
|---|---|
public int u32()
| |
| u32 | back to summary |
|---|---|
| public hb_var_num_t u32(int value) Sets the specified value to the | |
| u8 | back to summary |
|---|---|
public ByteBuffer u8()
| |
| u8 | back to summary |
|---|---|
public byte u8(int index)
| |
| u8 | back to summary |
|---|---|
| public hb_var_num_t u8(ByteBuffer value) Copies the specified | |
| u8 | back to summary |
|---|---|
| public hb_var_num_t u8(int index, byte value) Sets the specified value at the specified index of the | |
hb_var_num_t structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final hb_var_num_t |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public hb_var_num_t. | |
| protected hb_var_num_t | |
| public ShortBuffer | |
| public short | |
| public hb_var_num_t. | |
| public hb_var_num_t. | |
| public int | |
| public hb_var_num_t. | |
| public ByteBuffer | |
| public byte | |
| public hb_var_num_t. | |
| public hb_var_num_t. | |
| protected hb_var_num_t. | |
| public ShortBuffer | |
| public short | |
| public hb_var_num_t. | |
| public hb_var_num_t. | |
| public int | |
| public hb_var_num_t. | |
| public ByteBuffer | |
| public byte | |
| public hb_var_num_t. | |
| public hb_var_num_t. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final hb_var_num_t ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| f | back to summary |
|---|---|
public float f()
| |
| f | back to summary |
|---|---|
| public hb_var_num_t. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected hb_var_num_t getElementFactory() Implements abstract org.
| |
| i16 | back to summary |
|---|---|
public ShortBuffer i16()
| |
| i16 | back to summary |
|---|---|
public short i16(int index)
| |
| i16 | back to summary |
|---|---|
| public hb_var_num_t. Copies the specified | |
| i16 | back to summary |
|---|---|
| public hb_var_num_t. Sets the specified value at the specified index of the | |
| i32 | back to summary |
|---|---|
public int i32()
| |
| i32 | back to summary |
|---|---|
| public hb_var_num_t. Sets the specified value to the | |
| i8 | back to summary |
|---|---|
public ByteBuffer i8()
| |
| i8 | back to summary |
|---|---|
public byte i8(int index)
| |
| i8 | back to summary |
|---|---|
| public hb_var_num_t. Copies the specified | |
| i8 | back to summary |
|---|---|
| public hb_var_num_t. Sets the specified value at the specified index of the | |
| self | back to summary |
|---|---|
| protected hb_var_num_t. Implements abstract org.
| |
| u16 | back to summary |
|---|---|
public ShortBuffer u16()
| |
| u16 | back to summary |
|---|---|
public short u16(int index)
| |
| u16 | back to summary |
|---|---|
| public hb_var_num_t. Copies the specified | |
| u16 | back to summary |
|---|---|
| public hb_var_num_t. Sets the specified value at the specified index of the | |
| u32 | back to summary |
|---|---|
public int u32()
| |
| u32 | back to summary |
|---|---|
| public hb_var_num_t. Sets the specified value to the | |
| u8 | back to summary |
|---|---|
public ByteBuffer u8()
| |
| u8 | back to summary |
|---|---|
public byte u8(int index)
| |
| u8 | back to summary |
|---|---|
| public hb_var_num_t. Copies the specified | |
| u8 | back to summary |
|---|---|
| public hb_var_num_t. Sets the specified value at the specified index of the | |