ZLinq
Unlike the semantics of normal CopyTo, this allows the destination to be smaller than the source.
Returns the number of elements copied.
List is cleared and then filled with the elements of the source. Destination size is list.Count.
Converts to an array borrowed from ArrayPool<T>.Shared.
For performance considerations, PooledArray is a struct, so
copying or boxing it risks returning to the ArrayPool multiple times.
Always use it simply with using and do not keep it for long periods.
Holds an array borrowed from ArrayPool<T>.Shared.Rent.
When Disposed, it will Return the array to ArrayPool<T>.Shared.
If boxed or passed by copy, there's a risk of multiple Returns.
Please use it as is and avoid long-term retention.
Equivalent of IEnumerator.MoveNext + Current.
Returns the length when processing time is not necessary.
Always returns true if TryGetSpan or TryCopyTo returns true.
Returns true if it can return a Span.
Used for SIMD and loop processing optimization.
If copying the entire value is acceptable, prioritize TryGetNonEnumeratedCount -> TryCopyTo instead.
Unlike the semantics of normal CopyTo, this allows the destination to be smaller than the source.
This serves as a TryGet function as well, e.g. single-span and ^1 is TryGetLast.
Gets the namespace where the generated LINQ implementations will be placed.
If empty, the implementations will be generated in the global namespace.
Gets the types of collections for which LINQ implementations should be generated.
Gets whether the generated LINQ implementations should be public.
When true, the implementations will be generated with public visibility.
When false (default), the implementations will be generated with internal visibility.
Gets or sets the conditional compilation symbols to wrap the generated code with #if directives.
If specified, the generated code will be wrapped in #if/#endif directives using these symbols.
Gets or sets whether to disable source generation in emitted code.
When true, the source code comments will not be included in the generated code.
When false (default), source code comments will be included in the generated code.
Initializes a new instance of the class.
The namespace where the generated LINQ implementations will be placed. If empty, place to global.
The types of collections for which LINQ implementations should be generated.
Gets the namespace where the generated LINQ implementations will be placed.
If empty, the implementations will be generated in the global namespace.
Gets whether the generated LINQ implementations should be public.
When true, the implementations will be generated with public visibility.
When false (default), the implementations will be generated with internal visibility.