Class: MSDOS

MSDOS

This is a description of the MSDOS class.

new MSDOS()

Methods

(static) AddressToOffset(nSegment, nOffsetopt) → {Int}

Translate segment/offset address pair to file offset.
Parameters:
Name Type Attributes Default Description
nSegment UShort Segment address.
nOffset UShort <optional>
0 Offset address.
Returns:
Type
Int

(static) calculateEntropy()

See:

(static) calculateMD5()

See:

(static) compare()

See:

(static) compareEP()

See:

(static) compareOverlay()

See:

(static) findByte()

See:

(static) findDword()

See:

(static) findSignature()

See:

(static) findString()

See:

(static) findWord()

See:

(static) getBaseOffset(nOffsetopt) → {Int}

Get the “base” offset, after the header.
Parameters:
Name Type Attributes Default Description
nOffset Int <optional>
0 The offset from the base offset.
Returns:
Type
Int

(static) getEntryPointOffset() → {Int}

Get the offset of the entry point.
Returns:
If an error occurs, -1 will be returned.
Type
Int

(static) getEntryPointOffset(nOffsetopt) → {Int}

Get the entry point file offset.
Parameters:
Name Type Attributes Default Description
nOffset Int <optional>
0 The offset from the entry point.
Returns:
Type
Int

(static) getFileBaseName()

See:

(static) getFileCompleteSuffix()

See:

(static) getFileDirectory()

See:

(static) getFileSuffix()

See:

(static) getNEOffset(nOffsetopt) → {Int}

Get the NewExe (or LE/LX) file offset (assuming it's valid).
Parameters:
Name Type Attributes Default Description
nOffset Int <optional>
0 The offset from the NewExe offset.
Returns:
Type
Int

(static) getOverlayOffset() → {Int}

Get the file offset of the overlay.
Returns:
Type
Int

(static) getOverlaySize() → {Int}

Get the size of the overlay.
Returns:
Type
Int

(static) getSignature()

See:

(static) getSize()

See:

(static) getString()

See:

(static) isLE() → {Bool}

Check if the file is a Linear Executable.
Returns:
Type
Bool

(static) isLX() → {Bool}

Check if the file is a Linear eXecutable.
Returns:
Type
Bool

(static) isNE() → {Bool}

Check if the file is a New Executable.
Returns:
Type
Bool

(static) isOverlayPresent() → {Bool}

Check if an overlay is present.
Returns:
Type
Bool

(static) isSignaturePresent()

See:

(static) readByte()

See:

(static) readDword()

See:

(static) readWord()

See:

(static) swapBytes()

See: