Skip to content

Add more control over address #6

@ambihelical

Description

@ambihelical

Is your feature request related to a problem? Please describe.
I have a payload to describe that has several fixed length arrays, of differing lengths, each of which I put in one or more rows. Currently I have a borderless box before each array to describe the array, and then call (def boxes-per-row xx)(draw-column-headers) to show byte offsets for the boxes in each row.

Unfortunately, the current address appears to be reset with (draw-column-headers), so there is no byte offset for each row. Also, there doesn't seem to be way to indicate that the descriptive text box should not be counted as field bytes.

Describe the solution you'd like

  1. Be able to tell draw-column-headers to not reset the address
  2. Be able to indicate that a box should not modify the address (i.e. is not a field)

Describe alternatives you've considered
I have made separate figures for each row, but this is awkward.
I have also tried without descriptive text, but there are many similar arrays and it is hard to describe them within each field box only.
I currently draw the row header manually to get around bytefield not updating or drawing the address. This is error prone but works.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions