data ObjectInfo{
int textSize
int infoSectionCount
int relocationCount
}
data InfoSection{
char sectionType[]
char contentType[]
byte content[]
}
/*
{"description" : "Utility to inspect compiled Dana components. This is primarily used to examine 'info sections' in these components such as the list of interfaces that a component has.", "@deprecated" : "true", "@deprecatedBy" : "util.ObjectFile", "@deprecatedOn" : "2020/01/01"}
*/
interface ObjectReader{
/*
{"@description" : "Create an ObjectReader for a given compiled component file." }
*/
ObjectReader(char path[])
/*
{"@description" : "Get general information about the object file." }
*/
ObjectInfo getInfo()
/*
{"@description" : "Iterate through each info section." }
*/
InfoSection getNextSection()
/*
{"@description" : "Query the compiled component for a specific info section, identified by a 4-character section type." }
*/
InfoSection getInfoSection(char type[])
char[] getPath()
int getCurrentInfoSectionIndex()
}
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n composition.ObjectReader -m "reason for update" -u yourUsername
Version 1 (this version) by barry
Notes for this version: Standard Library Initialisation