commit | 9c67278fa70b9a5dc24a96cd61ac328e34be55cf | [log] [tgz] |
---|---|---|
author | Chenbo Feng <fengc@google.com> | Thu Jun 08 16:28:13 2017 -0700 |
committer | Chenbo Feng <fengc@google.com> | Wed Jun 14 11:48:26 2017 -0700 |
tree | dc38b9a2c4ae6dde8866c324ea71454f5720be4c | |
parent | 6f58aa2f9d8f3b1748a2cdc617111f03a5c46d7b [diff] |
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: Chenbo Feng <fengc@google.com> Change-Id: I0944ed13785d6a6c8ddd2ecbfbb0ff60a1dfcf36