amfUtils.js
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)]);
}
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)]);
}
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 ) ] ) ; }
AMF0 Encode Binary Object into binary Array
@param oData
@returns {Buffer}
AMF0 Encode Binary Object into binary Array