only explains when a bad sequence started in the current or past buffer (in
this case it would take a negative value).
throw new ArgumentNullException ("bytesUnknown");
if (fallback_assigned && Remaining != 0)
throw new ArgumentException ("Reentrant Fallback method invocation occured. It might be because either this FallbackBuffer is incorrectly shared by multiple threads, invoked inside Encoding recursively, or Reset invocation is forgotten.");
- if (index < 0 || bytesUnknown.Length < index)
- throw new ArgumentOutOfRangeException ("index");
fallback_assigned = true;
current = 0;