MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / getOffset

Method getOffset

extensions/structs/Struct.cpp:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#include "Struct.h"
33
34bool StructInfo::getOffset( const char *member, int *offset )
35{
36 MemberInfo **pInfo = members.retrieve(member);
37
38 if (pInfo == NULL)
39 {
40 return false;
41 }
42
43 *offset = (*pInfo)->offset;
44
45 return true;
46}
47
48bool StructInfo::getType( const char *member, MemberType*type )
49{

Callers 12

GetIntMethod · 0.80
GetFloatMethod · 0.80
SetIntMethod · 0.80
SetFloatMethod · 0.80
IsPointerNullMethod · 0.80
setPointerNullMethod · 0.80
GetVectorMethod · 0.80
SetVectorMethod · 0.80
GetStringMethod · 0.80
SetStringMethod · 0.80
GetEHandleMethod · 0.80
SetEHandleMethod · 0.80

Calls 1

retrieveMethod · 0.45

Tested by

no test coverage detected