Class CssLocation

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class CssLocation extends ProxyInstance
Points at a location inside a CSS stream.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Allocate a new CssLocation.
    CssLocation(long bytes, long chars, long lines, long lineBytes, long lineChars)
    Allocate a new CssLocation with the fields set to the provided values.
    CssLocation(long bytes, long chars, long lines, long lineBytes, long lineChars, Arena arena)
    Allocate a new CssLocation with the fields set to the provided values.
    Allocate a new CssLocation.
    Create a CssLocation proxy instance for the provided memory address.
  • Method Summary

    Modifier and Type
    Method
    Description
    The memory layout of the native struct.
    long
    Read the value of the field bytes.
    long
    Read the value of the field chars.
    long
    Read the value of the field line_bytes.
    long
    Read the value of the field line_chars.
    long
    Read the value of the field lines.
    void
    writeBytes(long bytes)
    Write a value in the field bytes.
    void
    writeChars(long chars)
    Write a value in the field chars.
    void
    writeLineBytes(long lineBytes)
    Write a value in the field line_bytes.
    void
    writeLineChars(long lineChars)
    Write a value in the field line_chars.
    void
    writeLines(long lines)
    Write a value in the field lines.

    Methods inherited from class ProxyInstance

    equals, handle, hashCode

    Methods inherited from class Object

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

    • CssLocation

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

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

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

      public CssLocation(long bytes, long chars, long lines, long lineBytes, long lineChars, Arena arena)
      Allocate a new CssLocation 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
    • CssLocation

      public CssLocation(long bytes, long chars, long lines, long lineBytes, long lineChars)
      Allocate a new CssLocation 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