Class NativeCommentManager
java.lang.Object
com.pnfsoftware.jeb.core.units.impl.AbstractCommentManager<ICodeCoordinates,INativeCodeUnit<?>>
com.pnfsoftware.jeb.core.units.code.CodeCommentManager<INativeCodeUnit<?>>
com.pnfsoftware.jeb.core.units.code.NativeCommentManager
A comment manager for
native code units. The secondary addressing scheme
uses ICodeCoordinates.-
Field Summary
Fields inherited from class com.pnfsoftware.jeb.core.units.code.CodeCommentManager
COMMENT_FLAG_ASSEMBLY_ONLY, COMMENT_FLAG_DECOMPILER_META, COMMENT_FLAG_SOURCE_ONLYFields inherited from class com.pnfsoftware.jeb.core.units.impl.AbstractCommentManager
COMMENT_FLAG_FAVORITE, INLINE, PRE -
Constructor Summary
ConstructorsConstructorDescriptionNativeCommentManager(INativeCodeUnit<?> unit) Create a native comment manager. -
Method Summary
Modifier and TypeMethodDescriptionlongaddressToMemory(String address) Convert a unit address to a canonical memory address.longcoordToMemory(ICodeCoordinates coord) Convert code coordinates to a canonical memory address.memoryToAddress(long a) Convert a canonical memory address to a unit address.memoryToCoord(long a) Convert a canonical memory address to code coordinates.Methods inherited from class com.pnfsoftware.jeb.core.units.code.CodeCommentManager
addressToCoord, coordToAddressMethods inherited from class com.pnfsoftware.jeb.core.units.impl.AbstractCommentManager
addMetaComment, addMetaComment, addMetaComment2, addMetaComment2, formatComments, formatComments2, formatMetaComment, formatMetaFlags, getComment, getComment2, getComments, getComments2, getInlineComment, getInlineComment2, getMetaCommentObjects, getMetaCommentObjects2, getMetaComments, getMetaComments, getMetaComments2, getMetaComments2, getPreComment, getPreComment2, getPrimary, getPrimary2, getPrimaryMap, getPrimaryMap2, getUnit, putAll, removeMetaComment, removeMetaComment2, setComment, setComment2, setInlineComment, setInlineComment, setInlineComment2, setInlineComment2, setPreComment, setPreComment, setPreComment2, setPreComment2, setPrimary, setPrimary2
-
Constructor Details
-
NativeCommentManager
Create a native comment manager.- Parameters:
unit- native code unit
-
-
Method Details
-
addressToMemory
Convert a unit address to a canonical memory address.- Parameters:
address- unit address- Returns:
- memory address
-
memoryToAddress
Convert a canonical memory address to a unit address.- Parameters:
a- memory address- Returns:
- unit address
-
coordToMemory
Convert code coordinates to a canonical memory address.- Parameters:
coord- code coordinates- Returns:
- memory address, or -1
-
memoryToCoord
Convert a canonical memory address to code coordinates.- Parameters:
a- memory address- Returns:
- code coordinates, or null
-