JSDoc: Class: MSDOS

# 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:
    - Binary.calculateEntropy

#### (static) calculateMD5()

  See:
    - Binary.calculateMD5

#### (static) compare()

  See:
    - Binary.compare

#### (static) compareEP()

  See:
    - PE.compareEP

#### (static) compareOverlay()

  See:
    - PE.compareOverlay

#### (static) findByte()

  See:
    - Binary.findByte

#### (static) findDword()

  See:
    - Binary.findDword

#### (static) findSignature()

  See:
    - Binary.findSignature

#### (static) findString()

  See:
    - Binary.findString

#### (static) findWord()

  See:
    - Binary.findWord

#### (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:
    - Binary.getFileBaseName

#### (static) getFileCompleteSuffix()

  See:
    - Binary.getFileCompleteSuffix

#### (static) getFileDirectory()

  See:
    - Binary.getFileDirectory

#### (static) getFileSuffix()

  See:
    - Binary.getFileSuffix

#### (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:
    - Binary.getSignature

#### (static) getSize()

  See:
    - Binary.getSize

#### (static) getString()

  See:
    - Binary.getString

#### (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:
    - Binary.isSignaturePresent

#### (static) readByte()

  See:
    - Binary.readByte

#### (static) readDword()

  See:
    - Binary.readDword

#### (static) readWord()

  See:
    - Binary.readWord

#### (static) swapBytes()

  See:
    - Binary.swapBytes