Class ParseLocation

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gsk.ParseLocation
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ParseLocation extends ProxyInstance
A location in a parse buffer.
  • Constructor Details

    • ParseLocation

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

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

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

      public ParseLocation(long bytes, long chars, long lines, long lineBytes, long lineChars, Arena arena)
      Allocate a new ParseLocation with the fields set to the provided values.
      Parameters:
      bytes - value for the field bytes
      chars - value for the field chars
      lines - value for the field lines
      lineBytes - value for the field lineBytes
      lineChars - value for the field lineChars
      arena - to control the memory allocation scope
    • ParseLocation

      public ParseLocation(long bytes, long chars, long lines, long lineBytes, long lineChars)
      Allocate a new ParseLocation with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      bytes - value for the field bytes
      chars - value for the field chars
      lines - value for the field lines
      lineBytes - value for the field lineBytes
      lineChars - value for the field lineChars
  • Method Details

    • getMemoryLayout

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

      public long readBytes()
      Read the value of the field bytes.
      Returns:
      The value of the field bytes
    • writeBytes

      public void writeBytes(long bytes)
      Write a value in the field bytes.
      Parameters:
      bytes - The new value for the field bytes
    • readChars

      public long readChars()
      Read the value of the field chars.
      Returns:
      The value of the field chars
    • writeChars

      public void writeChars(long chars)
      Write a value in the field chars.
      Parameters:
      chars - The new value for the field chars
    • readLines

      public long readLines()
      Read the value of the field lines.
      Returns:
      The value of the field lines
    • writeLines

      public void writeLines(long lines)
      Write a value in the field lines.
      Parameters:
      lines - The new value for the field lines
    • readLineBytes

      public long readLineBytes()
      Read the value of the field line_bytes.
      Returns:
      The value of the field line_bytes
    • writeLineBytes

      public void writeLineBytes(long lineBytes)
      Write a value in the field line_bytes.
      Parameters:
      lineBytes - The new value for the field line_bytes
    • readLineChars

      public long readLineChars()
      Read the value of the field line_chars.
      Returns:
      The value of the field line_chars
    • writeLineChars

      public void writeLineChars(long lineChars)
      Write a value in the field line_chars.
      Parameters:
      lineChars - The new value for the field line_chars