code: 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 }
  }
docs: AMF0 Decode Typed Object
  @param buf
  @returns {{len: number, value: ({}|*)}}