amfUtils.js
function amf0cnvArray2Object(aData) {
    var buf = new Buffer(1);
    buf.writeUInt8(0x3,0); // Object id
    return Buffer.concat([buf,aData.slice(5)]);
}
function amf0cnvArray2Object(aData) {
    var buf = new Buffer(1);
    buf.writeUInt8(0x3,0); // Object id
    return Buffer.concat([buf,aData.slice(5)]);
}
function amf0cnvArray2Object ( aData ) { var buf = new Buffer ( 1 ) ; buf . writeUInt8 ( 0x3 , 0 ) ; // Object id return Buffer . concat ( [ buf , aData . slice ( 5 ) ] ) ; }
AMF0 Encode Binary Array into binary Object
@param aData
@returns {Buffer}
AMF0 Encode Binary Array into binary Object