Class VarNum

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.VarNum
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class VarNum extends ProxyInstance
  • Constructor Summary

    Constructors
    Constructor
    Description
    Allocate a new VarNum.
    VarNum(float f, int u32, int i32, short[] u16, short[] i16, byte[] u8, byte[] i8)
    Allocate a new VarNum with the fields set to the provided values.
    VarNum(float f, int u32, int i32, short[] u16, short[] i16, byte[] u8, byte[] i8, Arena arena)
    Allocate a new VarNum with the fields set to the provided values.
    VarNum(Arena arena)
    Allocate a new VarNum.
    Create a VarNum proxy instance for the provided memory address.
  • Method Summary

    Modifier and Type
    Method
    Description
    The memory layout of the native struct.
    float
    Read the value of the field f.
    @Nullable short @Nullable []
    Read the value of the field i16.
    int
    Read the value of the field i32.
    @Nullable byte @Nullable []
    Read the value of the field i8.
    @Nullable short @Nullable []
    Read the value of the field u16.
    int
    Read the value of the field u32.
    @Nullable byte @Nullable []
    Read the value of the field u8.
    void
    writeF(float f)
    Write a value in the field f.
    void
    writeI16(@Nullable short @Nullable [] i16, Arena _arena)
    Write a value in the field i16.
    void
    writeI32(int i32)
    Write a value in the field i32.
    void
    writeI8(@Nullable byte @Nullable [] i8, Arena _arena)
    Write a value in the field i8.
    void
    writeU16(@Nullable short @Nullable [] u16, Arena _arena)
    Write a value in the field u16.
    void
    writeU32(int u32)
    Write a value in the field u32.
    void
    writeU8(@Nullable byte @Nullable [] u8, Arena _arena)
    Write a value in the field u8.

    Methods inherited from class ProxyInstance

    equals, handle, hashCode

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VarNum

      public VarNum(MemorySegment address)
      Create a VarNum proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • VarNum

      public VarNum(Arena arena)
      Allocate a new VarNum.
      Parameters:
      arena - to control the memory allocation scope
    • VarNum

      public VarNum()
      Allocate a new VarNum. The memory is allocated with Arena.ofAuto().
    • VarNum

      public VarNum(float f, int u32, int i32, short[] u16, short[] i16, byte[] u8, byte[] i8, Arena arena)
      Allocate a new VarNum with the fields set to the provided values.
      Parameters:
      f - value for the field f
      u32 - value for the field u32
      i32 - value for the field i32
      u16 - value for the field u16
      i16 - value for the field i16
      u8 - value for the field u8
      i8 - value for the field i8
      arena - to control the memory allocation scope
    • VarNum

      public VarNum(float f, int u32, int i32, short[] u16, short[] i16, byte[] u8, byte[] i8)
      Allocate a new VarNum with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      f - value for the field f
      u32 - value for the field u32
      i32 - value for the field i32
      u16 - value for the field u16
      i16 - value for the field i16
      u8 - value for the field u8
      i8 - value for the field i8
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readF

      public float readF()
      Read the value of the field f.
      Returns:
      The value of the field f
    • writeF

      public void writeF(float f)
      Write a value in the field f.
      Parameters:
      f - The new value for the field f
    • readU32

      public int readU32()
      Read the value of the field u32.
      Returns:
      The value of the field u32
    • writeU32

      public void writeU32(int u32)
      Write a value in the field u32.
      Parameters:
      u32 - The new value for the field u32
    • readI32

      public int readI32()
      Read the value of the field i32.
      Returns:
      The value of the field i32
    • writeI32

      public void writeI32(int i32)
      Write a value in the field i32.
      Parameters:
      i32 - The new value for the field i32
    • readU16

      public @Nullable short @Nullable [] readU16()
      Read the value of the field u16.
      Returns:
      The value of the field u16
    • writeU16

      public void writeU16(@Nullable short @Nullable [] u16, Arena _arena)
      Write a value in the field u16.
      Parameters:
      u16 - The new value for the field u16
    • readI16

      public @Nullable short @Nullable [] readI16()
      Read the value of the field i16.
      Returns:
      The value of the field i16
    • writeI16

      public void writeI16(@Nullable short @Nullable [] i16, Arena _arena)
      Write a value in the field i16.
      Parameters:
      i16 - The new value for the field i16
    • readU8

      public @Nullable byte @Nullable [] readU8()
      Read the value of the field u8.
      Returns:
      The value of the field u8
    • writeU8

      public void writeU8(@Nullable byte @Nullable [] u8, Arena _arena)
      Write a value in the field u8.
      Parameters:
      u8 - The new value for the field u8
    • readI8

      public @Nullable byte @Nullable [] readI8()
      Read the value of the field i8.
      Returns:
      The value of the field i8
    • writeI8

      public void writeI8(@Nullable byte @Nullable [] i8, Arena _arena)
      Write a value in the field i8.
      Parameters:
      i8 - The new value for the field i8