amfUtils.js
function amf0decTypedObj(buf) {
    var className = amf0decString(buf);
    var obj = amf0decObject(buf.slice(className.len - 1));
    obj.value.__className__ = className.value;
    return { len: className.len + obj.len - 1, value: obj.value }
}
function amf0decTypedObj(buf) {
    var className = amf0decString(buf);
    var obj = amf0decObject(buf.slice(className.len - 1));
    obj.value.__className__ = className.value;
    return { len: className.len + obj.len - 1, value: obj.value }
}
function amf0decTypedObj ( buf ) { var className = amf0decString ( buf ) ; var obj = amf0decObject ( buf . slice ( className . len - 1 ) ) ; obj . value . __className__ = className . value ; return { len : className . len + obj . len - 1 , value : obj . value } }
AMF0 Decode Typed Object
@param buf
@returns {{len: number, value: ({}|*)}}
AMF0 Decode Typed Object