code: function amf0cnvObject2Array(oData) {
      var buf = new Buffer(5);
      var o = amf0decObject(oData);
      var l = Object.keys(o).length;
      buf.writeUInt32BE(l,1);
      return Buffer.concat([buf,oData.slice(1)]);
  }
docs: AMF0 Encode Binary Object into binary Array
  @param oData
  @returns {Buffer}