def GetMemberId(sid, member_offset):
    s = idaapi.get_struc(sid)
    if not s:
        return -1

    m = idaapi.get_member(s, member_offset)
    if not m:
        return -1

    return m.id
Coerces a value or list of values to `db.Key` instances.
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetMemberId--crossover with--dataset/ETHPy150Open moraes/tipfy/tipfy/appengine/db/__init__.py/to_key