Detect-It-Easy/help/MACH.js

195 lines
No EOL
4.6 KiB
JavaScript

/**
* @class
* @classdesc This is a description of the MACH class.
*/
function MACH(){}
/**
* @see Binary.calculateEntropy
*/
MACH.calculateEntropy=function(nOffset,nSize){}
/**
* @see Binary.calculateMD5
*/
MACH.calculateMD5=function(nOffset,nSize){}
/**
* @see Binary.compare
*/
MACH.compare=function(sSignature,nOffset){}
/**
* @see PE.compareEP
*/
MACH.compareEP=function(sSignature,nOffset){}
/**
* @see Binary.findByte
*/
MACH.findByte=function(nOffset,nSize,cValue){}
/**
* @see Binary.findDword
*/
MACH.findDword=function(nOffset,nSize,nValue){}
/**
* @see Binary.findSignature
*/
MACH.findSignature=function(nOffset,nSize,sSignature){}
/**
* @see Binary.findString
*/
MACH.findString=function(nOffset,nSize,sValue){}
/**
* @see Binary.findWord
*/
MACH.findWord=function(nOffset,nSize,sValue){}
/**
* @see Binary.getSignature
*/
MACH.getSignature=function(nOffset,nSize){}
/**
* @see Binary.getSize
*/
MACH.getSize=function(){}
/**
* @see Binary.isSignaturePresent
*/
MACH.isSignaturePresent=function(nOffset,nSize,sSignature){}
/**
* @see Binary.readByte
*/
MACH.readByte=function(nOffset){}
/**
* @see Binary.readDword
*/
MACH.readDword=function(nOffset){}
/**
* @see Binary.readWord
*/
MACH.readWord=function(nOffset){}
/**
* @see Binary.swapBytes
*/
MACH.swapBytes=function(nValue){}
/**
* @see Binary.getString
*/
MACH.getString=function(nOffset,nSize){}
/**
* @see Binary.getFileDirectory
*/
MACH.getFileDirectory=function(){}
/**
* Get a string in the form of <code>"<i>MACHtype</i><i>MACHmode</i>"</code>. For example <code>"EXE32"</code> or <code>"DYLIB64"</code>.
* @returns {String}
*/
MACH.getGeneralOptions=function(){}
/**
* Get the current version of a library.
* @param {String} sLibrary - The name of the library.
* @returns {String}
*/
MACH.getLibraryCurrentVersion=function(sLibrary){}
/**
* Get the number of sections.
* @returns {Int}
*/
MACH.getNumberOfSections=function(){}
/**
* Get the number of segments.
* @returns {Int}
*/
MACH.getNumberOfSegments=function(){}
/**
* Check if there is a library with a specific name in the import table.
* @param {String} sLibraryName - The name of the library.
* @returns {Bool}
*/
MACH.isLibraryPresent=function(sLibrary){}
/**
* Check if a section exists with a specific name or matches a regular expression.
* @param {String} sSectionName - Section name or pattern.
* @returns {Bool}
*/
MACH.isSectionNamePresent=function(sSectionName){}
/**
* Get the number of a section with a specific name.
* @param {String} sSectionName - Section name.
* @returns {Int} 0-based section number, or <code>-1</code> if there is no section with that name.
*/
MACH.getSectionNumber=function(sSectionName){}
/**
* Get the file offset of a section.
* @param {Int} nSection - Section number.
* @returns {UInt}
*/
MACH.getSectionFileOffset=function(nSection){}
/**
* Get the file size of a section.
* @param {Int} nSection - Section number.
* @returns {UInt}
*/
MACH.getSectionFileSize=function(nSection){}
/**
* Get the name of a section.
* @param {Int} nSection - Section number.
* @returns {UInt}
*/
MACH.getSectionName=function(nSection){}
/**
* Get the file offset of a segment.
* @param {Int} nSection - Section number.
* @returns {UInt}
*/
MACH.getSegmentFileOffset=function(nSection){}
/**
* Get the file size of a segment.
* @param {Int} nSection - Section number.
* @returns {UInt}
*/
MACH.getSegmentFileSize=function(nSection){}
/**
* Get the name of a segment.
* @param {Int} nSection - Section number.
* @returns {UInt}
*/
MACH.getSegmentName=function(nSection){}
/**
* Convert a relative virtual address (RVA) to a file offset.
* @param {UInt64} nRVA
* @returns {Int64} If an error occurs, -1 will be returned.
*/
MACH.RVAToOffset=function(nRVA){}
/**
* Convert a virtual address (VA) to a file offset.
* @param {UInt64} nVA
* @returns {Int64} If an error occurs, -1 will be returned.
*/
MACH.VAToOffset=function(nVA){}
/**
* Convert a file offset to a relative virtual address (RVA).
* @param {UInt64} nOffset
* @returns {Int64} If an error occurs, -1 will be returned.
*/
MACH.OffsetToRVA=function(nOffset){}
/**
* Convert a file offset to a virtual address (VA).
* @param {UInt64} nOffset
* @returns {Int64} If an error occurs, -1 will be returned.
*/
MACH.OffsetToVA=function(nOffset){}
/**
* Get the size of the overlay.
* @returns {Int}
*/
MACH.getOverlaySize=function(){}
/**
* Get the file offset of the overlay.
* @returns {Int}
*/
MACH.getOverlayOffset=function(){}
/**
* Check if an overlay is present.
* @returns {Bool}
*/
MACH.isOverlayPresent=function(){}
/**
* @see PE.compareOverlay
*/
MACH.compareOverlay=function(sSignature,nOffset){}