function EventEmitter() {
  if (!this._events || !Object.prototype.hasOwnProperty.call(this, '_events')) {
    this._events = objectCreate(null);
    this._eventsCount = 0;
  }

  this._maxListeners = this._maxListeners || undefined;
}
Decodes an UTF8 encoded string to a ByteBuffer.
@param {string} str String to decode
@param {boolean=} littleEndian Whether to use little or big endian byte order. Defaults to
 {@link ByteBuffer.DEFAULT_ENDIAN}.
@param {boolean=} noAssert Whether to skip assertions of offsets and values. Defaults to
 {@link ByteBuffer.DEFAULT_NOASSERT}.
@returns {!ByteBuffer} ByteBuffer
@expose