lib/HalDependencyResolver.js
function(binaryInfo, dep) {
		var result = {};
		dep = dep || 1;
		var depString = '';
		if (dep>1) {
			depString = ''+dep;
		}
		if (!binaryInfo) {
			return result;
		}

		var keys = Object.keys(binaryInfo);

		// iterate over the prefix info, looking for the keys we need.
		for (var i = 0; i < keys.length; i++) {
			var key = keys[i];
			var value = binaryInfo[key];

			switch (key) {
				case 'dep'+depString+'ModuleFunction':
					result.f = this._modFuncToChar(value);
					break;

				case 'dep'+depString+'ModuleIndex':
					result.n = value + '';
					break;

				case 'dep'+depString+'ModuleVersion':
					result.v = value;
					break;
			}
		}

		return result;
	}
function(binaryInfo, dep) {
		var result = {};
		dep = dep || 1;
		var depString = '';
		if (dep>1) {
			depString = ''+dep;
		}
		if (!binaryInfo) {
			return result;
		}

		var keys = Object.keys(binaryInfo);

		// iterate over the prefix info, looking for the keys we need.
		for (var i = 0; i < keys.length; i++) {
			var key = keys[i];
			var value = binaryInfo[key];

			switch (key) {
				case 'dep'+depString+'ModuleFunction':
					result.f = this._modFuncToChar(value);
					break;

				case 'dep'+depString+'ModuleIndex':
					result.n = value + '';
					break;

				case 'dep'+depString+'ModuleVersion':
					result.v = value;
					break;
			}
		}

		return result;
	}
/*
convert the 'dependency' keys from the binary prefix info into
the common JSON
format used by the describe messages.

@private