amfUtils.js
function amf0encRef(index) {
    var buf = new Buffer(3);
    buf.writeUInt8(0x07, 0);
    buf.writeUInt16BE(index, 1);
    return buf;
}
function amf0encRef(index) {
    var buf = new Buffer(3);
    buf.writeUInt8(0x07, 0);
    buf.writeUInt16BE(index, 1);
    return buf;
}
function amf0encRef ( index ) { var buf = new Buffer ( 3 ) ; buf . writeUInt8 ( 0x07 , 0 ) ; buf . writeUInt16BE ( index , 1 ) ; return buf ; }
AMF0 Encode Reference
@param index
@returns {Buffer}
AMF0 Encode Reference