Repository navigation
Replies: 2 comments 1 reply
|
What you're describing is a structure, not an array. Most pointers point to a structure, so we annotate them accordingly: You're essentially asking for a non-pointed at structure: |
|
An array is when an element is repeated multiple times. An array of 8 bytes is just 8 single-byte values. An array of 10 32-bit values is 40 bytes, where every fourth byte starts a new 32-bit value. An array of structs is just repeated structured data. Continuing with my example above, this is how I plan to support arrays of structs (eventually): That would annotate 160 bytes of data, where every 16th byte is first field, then the 4th byte after that is second field, etc. So, if the note were at $001000, a reference at $001028 would get decoded to:
I'm still trying to come up with the best way to annotate the path. The illustration is showing my current preference.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Issue: Array notes calculate the offset and show it at the top of the tooltip, but they do not hide unreferenced data the same way AddAddress note tooltips do.
Array note tooltip:

AddAddress note tooltip:

Array notes continue to be very useful, especially with advanced consoles. Currently, a significant disadvantage to using them is usability for future maintainers. With a large array note, the tooltip would be quite unwieldy.
Truncated large array note tooltip:

Request - add similar mid-note read functionality that strips out unreferenced data for array notes similar to how AddAddress handles mid-note reads. Additionally, having Array notes
All reactions