Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903417

Struct array slice accessor

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      Jextract could generate a slice accessor for struct arrays in the struct classes it generates.

      This accessor would look something like this:

          MemorySegment slice(MemorySegment arr, long index)

      Where 'arr' is an array of structs, and this method would return a single struct slice of that array.

            jvernee Jorn Vernee
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: