Click or drag to resize

JCOBridgeStreamTAsSpan Method

Returns a zero-copy ReadOnlySpanT over the entire stream contents, starting at offset zero regardless of the current Position.

Prefer this over IEnumerableT for bulk comparisons and copies: MemoryExtensions.SequenceEqual{T}(ReadOnlySpan{T}, ReadOnlySpan{T}) dispatches to SIMD hardware intrinsics with no allocations.


Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntax
public ReadOnlySpan<T> AsSpan()

Return Value

ReadOnlySpanT
A ReadOnlySpanT of length Count backed directly by the native memory buffer.
See Also