You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dev/annotation.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -252,10 +252,35 @@ To create a bitfield in a structure, you can use the `bit_position` and `bit_wid
252
252
```
253
253
254
254
It is important to note the distinction between the `bit_position` and `offset` parameters. The `offset` is a byte offset
255
-
from the start of the structure, and the `bit_position` is a bit offset from the start of byte offset. The reason member
255
+
from the start of the structure, and the `bit_position` is the bit from the start of byte offset the member resides at, `bit_position`**cannot** be greater than `7`. The reason member
256
256
offsets are byte offsets instead of bit offsets is historical, previous versions of Binary Ninja had no concept of bitwise
257
257
structures.
258
258
259
+
For example, if you have a structure with the following members:
0 commit comments