diff options
author | Garrett Regier <garrett.regier@riftio.com> | 2015-06-03 04:59:11 -0700 |
---|---|---|
committer | Garrett Regier <garrett.regier@riftio.com> | 2015-06-21 13:01:25 -0700 |
commit | cf6ea68018b94529aeb02aaa8b430c8d061e55c1 (patch) | |
tree | b0850de8d9d62557d1613e1cac46c828bb6e6a3d /m4 | |
parent | ec91f9d11b40de198b2faf8a80b49dbd71107750 (diff) | |
download | gobject-introspection-cf6ea68018b94529aeb02aaa8b430c8d061e55c1.tar.gz |
girepository: Add g_struct_info_find_field()
Add find_field utility function for finding a field info by name.
Beyond convenience, this should be faster than manually using
the get_n_fields and get_field functions because get_field does
an additional iteration for each field to calculate offsets O(n^2).
Thus find_field combines the offset and comparison
computations into a single loop O(n).
Based on a patch by Simon Feltman.
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions