lib/protocol.js
function implodeDataArray(data) {
	var dataArray = [], i, l;
	l = data.length;
	for(i = 0; i < l; i++) {
		dataArray.push(types.STRING);
		dataArray.push(encodeString(data[i]));
	}
	return implodeArray(dataArray);
}
function implodeDataArray(data) {
	var dataArray = [], i, l;
	l = data.length;
	for(i = 0; i < l; i++) {
		dataArray.push(types.STRING);
		dataArray.push(encodeString(data[i]));
	}
	return implodeArray(dataArray);
}
function implodeDataArray ( data ) { var dataArray = [ ] , i , l ; l = data . length ; for ( i = 0 ; i < l ; i ++ ) { dataArray . push ( types . STRING ) ; dataArray . push ( encodeString ( data [ i ] ) ) ; } return implodeArray ( dataArray ) ; }
Concatenates the array values in a pipe-delimited string
in the following form FIELD_TYPE_STRING|value.
Values are encoded as strings.

@param {Array} data fields to be encoded
@return {String} the pipe-delimited string
@private
Concatenates the array values in a pipe - delimited string in the following form FIELD_TYPE_STRING|value . Values are encoded as strings .