private static void CheckLength(long length) { if (length > 2147483591) throw new ArgumentException("Streams with a length larger than 2147483591 are not supported, read from file instead.", nameof(length)); }