-- Function to return a table of fields and their offsets for the specified class name
-- params:
-- className: name of the class to get a structure definition for
-- namespace (OPTIONAL): namespace of the class to get a structure definition for
-- img (OPTIONAL): mono image in which to search for class, speeds up the process