lib/module.js
function Module (process, name, path, base, size)
	{
		// Auto instantiate the Module
		if (!(this instanceof Module))
		{
			return new Module (process,
				name, path, base, size);
		}

		// Check for any arguments
		if (process === undefined)
		{
			this._valid = false;
			this._name  = "";
			this._path  = "";
			this._base  = 0;
			this._size  = 0;
			this._proc  = robot.Process();
			this._segments = null;
			return;
		}

		// Verify that args are valid
		if (typeof name === "string" &&
			typeof path === "string" &&
			typeof base === "number" &&
			typeof size === "number" &&
			process instanceof robot.Process)
		{
			this._valid = true;
			this._name  = name;
			this._path  = path;
			this._base  = base;
			this._size  = size;
			this._proc  = process;
			this._segments = null;
			return;
		}

		throw new TypeError ("Invalid arguments");
	}
function Module (process, name, path, base, size)
	{
		// Auto instantiate the Module
		if (!(this instanceof Module))
		{
			return new Module (process,
				name, path, base, size);
		}

		// Check for any arguments
		if (process === undefined)
		{
			this._valid = false;
			this._name  = "";
			this._path  = "";
			this._base  = 0;
			this._size  = 0;
			this._proc  = robot.Process();
			this._segments = null;
			return;
		}

		// Verify that args are valid
		if (typeof name === "string" &&
			typeof path === "string" &&
			typeof base === "number" &&
			typeof size === "number" &&
			process instanceof robot.Process)
		{
			this._valid = true;
			this._name  = name;
			this._path  = path;
			this._base  = base;
			this._size  = size;
			this._proc  = process;
			this._segments = null;
			return;
		}

		throw new TypeError ("Invalid arguments");
	}
----------------------------------------------------------------------------// Constructor                                                         Module // ----------------------------------------------------------------------------// //////////////////////////////////////////////////////////////////////////////