/// <summary> /// Instantiates the filter by cloning the allow list of another <see cref="TextEncoderSettings"/>. /// </summary> public TextEncoderSettings(TextEncoderSettings other) { if (other is null) { ThrowHelper.ThrowArgumentNullException(ExceptionArgument.other); } _allowedCodePointsBitmap = other.GetAllowedCodePointsBitmap(); // copy byval }
/// <summary> /// Instantiates the filter by cloning the allow list of another <see cref="TextEncoderSettings"/>. /// </summary> public TextEncoderSettings(TextEncoderSettings other) { if (other == null) { throw new ArgumentNullException(nameof(other)); } _allowedCodePointsBitmap = other.GetAllowedCodePointsBitmap(); // copy byval }
/// <summary> /// Resets this settings object by disallowing all characters. /// </summary> public virtual void Clear() { _allowedCodePointsBitmap = default; }