amfUtils.js
function amf0decLongString(buf) {
    var sLen = buf.readUInt32BE(1);
    return { len: 5 + sLen, value: buf.toString('utf8', 5, 5 + sLen) }
}
function amf0decLongString(buf) {
    var sLen = buf.readUInt32BE(1);
    return { len: 5 + sLen, value: buf.toString('utf8', 5, 5 + sLen) }
}
function amf0decLongString ( buf ) { var sLen = buf . readUInt32BE ( 1 ) ; return { len : 5 + sLen , value : buf . toString ( 'utf8' , 5 , 5 + sLen ) } }
AMF0 Decode Long String
@param buf
@returns {{len: *, value: (*|string|String)}}
AMF0 Decode Long String