|
Enhanced C#
Loyc library documentation
|
Memory{T}.Span is slower than you'd expect (even on modern .NET) because it holds an object reference and every call to Span must figure out what kind of object it is (there are three cases). This type exists to speed up that property in the usual case that it's an array.
More...
Memory{T}.Span is slower than you'd expect (even on modern .NET) because it holds an object reference and every call to Span must figure out what kind of object it is (there are three cases). This type exists to speed up that property in the usual case that it's an array.
Public fields | |
| readonly Memory< T > | _mem |
| readonly T[] | _array |
| readonly int | _arrayOffset |
| Memory< T > | Memory => _mem |
| The underlying Memory{T}. More... | |
Properties | |
| Span< T > | Span [get, set] |
| int | Length [get] |
Public Member Functions | |
| Memory2 (Memory< T > mem) | |
| Memory< T > | Slice (int start) |
| Memory< T > | Slice (int start, int length) |
| T[] | ToArray () |
Static Public Member Functions | |
| static implicit | operator Memory2< T > (Memory< T > mem) |
| Memory<T> Memory2< T >.Memory => _mem |
The underlying Memory{T}.
1.8.7