lib/marshal/index.js
function compositeDeserializer(deserializers){
  return function(str){
    var buf = new Buffer(str, 'binary'),
        pos = 0, len, vals = [], i = 0;

     while( pos < buf.length){
       len = buf.readUInt16BE(pos);
       pos += 2;
       vals.push(deserializers[i](buf.slice(pos, len + pos)));
       i += 1;
       pos += len + 1;
     }

    return vals;
  };
}
function compositeDeserializer(deserializers){
  return function(str){
    var buf = new Buffer(str, 'binary'),
        pos = 0, len, vals = [], i = 0;

     while( pos < buf.length){
       len = buf.readUInt16BE(pos);
       pos += 2;
       vals.push(deserializers[i](buf.slice(pos, len + pos)));
       i += 1;
       pos += len + 1;
     }

    return vals;
  };
}
function compositeDeserializer ( deserializers ) { return function ( str ) { var buf = new Buffer ( str , 'binary' ) , pos = 0 , len , vals = [ ] , i = 0 ; while ( pos < buf . length ) { len = buf . readUInt16BE ( pos ) ; pos += 2 ; vals . push ( deserializers [ i ] ( buf . slice ( pos , len + pos ) ) ) ; i += 1 ; pos += len + 1 ; } return vals ; } ; }
Creates a deserializer for composite types
@private
@memberOf Marshal
Creates a deserializer for composite types