@@ -4943,7 +4943,7 @@ def GetStrucName(sid):
49434943
49444944 @param sid: structure type ID
49454945
4946- @return: -1 if bad structure type ID is passed
4946+ @return: None if bad structure type ID is passed
49474947 otherwise returns structure type name.
49484948 """
49494949 return idaapi .get_struc_name (sid )
@@ -5023,8 +5023,8 @@ def GetStrucPrevOff(sid, offset):
50235023 @param sid: structure type ID
50245024 @param offset: current offset
50255025
5026- @return: -1 if bad structure type ID is passed
5027- or no (more) offsets in the structure
5026+ @return: -1 if bad structure type ID is passed,
5027+ idaapi.BADADDR if no (more) offsets in the structure,
50285028 otherwise returns previous offset in a structure.
50295029
50305030 @note: IDA allows 'holes' between members of a
@@ -5052,8 +5052,8 @@ def GetStrucNextOff(sid, offset):
50525052 @param sid: structure type ID
50535053 @param offset: current offset
50545054
5055- @return: -1 if bad structure type ID is passed
5056- or no (more) offsets in the structure
5055+ @return: -1 if bad structure type ID is passed,
5056+ idaapi.BADADDR if no (more) offsets in the structure,
50575057 otherwise returns next offset in a structure.
50585058
50595059 @note: IDA allows 'holes' between members of a
@@ -5077,8 +5077,8 @@ def GetFirstMember(sid):
50775077
50785078 @param sid: structure type ID
50795079
5080- @return: -1 if bad structure type ID is passed
5081- or structure has no members
5080+ @return: -1 if bad structure type ID is passed,
5081+ idaapi.BADADDR if structure has no members,
50825082 otherwise returns offset of the first member.
50835083
50845084 @note: IDA allows 'holes' between members of a
@@ -5102,8 +5102,8 @@ def GetLastMember(sid):
51025102
51035103 @param sid: structure type ID
51045104
5105- @return: -1 if bad structure type ID is passed
5106- or structure has no members
5105+ @return: -1 if bad structure type ID is passed,
5106+ idaapi.BADADDR if structure has no members,
51075107 otherwise returns offset of the last member.
51085108
51095109 @note: IDA allows 'holes' between members of a
@@ -5212,7 +5212,7 @@ def GetMemberSize(sid, member_offset):
52125212 at offset 2, then 2,3,4,5 denote
52135213 the same structure member.
52145214
5215- @return: -1 if bad structure type ID is passed
5215+ @return: None if bad structure type ID is passed,
52165216 or no such member in the structure
52175217 otherwise returns size of the specified
52185218 member in bytes.
0 commit comments