Commit 9c67278f authored by Chenbo Feng's avatar Chenbo Feng
Browse files

Add attribute offset support to cstruct



Add offset value of each struct attribute to cstruct. It is assigned
when initialize the struct. Also a helper function is provided to return
the offset value. Currently it does not work with nested struct.

Test: The unit test in cstruct_test.py should pass
Signed-off-by: default avatarChenbo Feng <fengc@google.com>
Change-Id: I0944ed13785d6a6c8ddd2ecbfbb0ff60a1dfcf36
parent 6f58aa2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment