amfUtils.js
function amf0encNumber(num) {
    var buf = new Buffer(9);
    buf.writeUInt8(0x00, 0);
    buf.writeDoubleBE(num, 1);
    return buf;
}
function amf0encNumber(num) {
    var buf = new Buffer(9);
    buf.writeUInt8(0x00, 0);
    buf.writeDoubleBE(num, 1);
    return buf;
}
function amf0encNumber ( num ) { var buf = new Buffer ( 9 ) ; buf . writeUInt8 ( 0x00 , 0 ) ; buf . writeDoubleBE ( num , 1 ) ; return buf ; }
AMF0 Encode Number
@param num
@returns {Buffer}
AMF0 Encode Number