amfUtils.js
function amf0encUString(s) {
    var data = new Buffer(s,'utf8');
    var sLen = new Buffer(2);
    sLen.writeUInt16BE(data.length,0);
    return Buffer.concat([sLen,data]);
}
function amf0encUString(s) {
    var data = new Buffer(s,'utf8');
    var sLen = new Buffer(2);
    sLen.writeUInt16BE(data.length,0);
    return Buffer.concat([sLen,data]);
}
function amf0encUString ( s ) { var data = new Buffer ( s , 'utf8' ) ; var sLen = new Buffer ( 2 ) ; sLen . writeUInt16BE ( data . length , 0 ) ; return Buffer . concat ( [ sLen , data ] ) ; }
Do AMD0 Encode of Untyped String
@param s
@returns {Buffer}
Do AMD0 Encode of Untyped String