Namespace Zyl.ExSpans
Classes
- ExMemoryExtensions
Provides extension methods for the span-related types, such as ExSpan<T> and ReadOnlyExSpan<T>. It can be regarded as the MemoryExtensions of nint index range (提供跨度相关类型的扩展方法,例如 ExSpan<T> 和 ReadOnlyExSpan<T>. 它可以被视为 nint 索引范围的 MemoryExtensions).
- ExMemoryMarshal
Provides a collection of methods for interoperating with ExSpan<T>, and ReadOnlyExSpan<T>. It can be regarded as the MemoryMarshal of nint index range (提供与 ExSpan 和 ExReadOnlySpan 互操作的方法. 它可以被视为 nint 索引范围的 MemoryMarshal).
- ExNativeMemory
This class contains methods that are mainly used to manage native memory. It can enable early versions NET can also use the method of NativeMemory, which will revert back to the implementation of AllocHGlobal(nint) (此类包含了主要用于管理本机内存的方法. 它能使早期版本的 .NET 也能使用 NativeMemory 的方法, 此时会回退为 AllocHGlobal(nint) 的实现).
- ExSpanExtensions
Provides commonly used extension methods for the span-related types, such as ExSpan<T> and ReadOnlyExSpan<T> (提供跨度相关的类型的常用的扩展方法,例如 ExSpan<T> 和 ReadOnlyExSpan<T>).
- ItemFormaters
The formaters of each item (各项的格式化器集).
- ItemsToStringFlagsUtil
The utilities of flags for convert items data into string (各项数据转字符串的标志的工具)
- SafeBufferSpanProviders
Helper methods of SafeBufferSpanProvider (SafeBufferSpanProvider 的辅助方法).
Structs
- ExSpan<T>
Provides a type-safe and memory-safe representation of a contiguous region of arbitrary memory. It can be regarded as the Span<T> of nint index range (提供任意内存的连续区域的类型安全和内存安全表示形式. 它可以被视为 nint 索引范围的 Span<T>).
- ExSpan<T>.Enumerator
Enumerates the elements of a ExSpan<T> (为 ExSpan<T> 的元素提供枚举器).
- ReadOnlyExSpan<T>
Provides a type-safe and memory-safe read-only representation of a contiguous region of arbitrary memory. It can be regarded as the ReadOnlySpan<T> of nint index range (提供任意内存连续区域的类型安全且内存安全的只读表示形式. 它可以被视为 nint 索引范围的 ReadOnlySpan<T>).
- ReadOnlyExSpan<T>.Enumerator
Enumerates the elements of a ReadOnlyExSpan<T> (为 ReadOnlyExSpan<T> 的元素提供枚举器).
- SafeBufferSpanProvider
The span provider that manages the pointer acquire for SafeBuffer (管理 SafeBuffer 指针获取的跨度提供者). For example, it can provide span access for memory mapped files (例如它可以为内存映射文件提供跨度访问器).
Interfaces
- IExLength
The interface of Ex length (扩展长度的接口).
- IExSpanBase<T>
The base interface of Ex span (扩展跨度的基本接口).
- IReadOnlyExSpanBase<T>
The base interface of read only Ex span (只读扩展跨度的基本接口).
Enums
- ItemsToStringFlags
Flags for convert items data into string (各项数据转字符串的标志).