NightOwl888 opened a new pull request, #691: URL: https://github.com/apache/lucenenet/pull/691
Fixes #675. While the System.Memory package allows the use of `ReadOnlySpan<T>` in all target frameworks, the methods overloads that accept `ReadOnlySpan<T>` parameters are only available in `net6.0` and in most cases, `netstandard2.1`. Therefore, at least for this use case, it was impractical to use System.Memory and we have new conditional compilation features to enable the `AsSpan()` calls when the APIs exist to utilize them. - FEATURE_STRING_CONCAT_READONLYSPAN (`net6.0` only) - FEATURE_NUMBER_PARSE_READONLYSPAN (`net6.0` and `netstandard2.1` only) - FEATURE_STREAM_READ_SPAN (`net6.0` and `netstandard2.1` only) - FEATURE_STRINGBUILDER_APPEND_READONLYSPAN (`net6.0` and `netstandard2.1` only) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
