Click or drag to resize

JCOBridgeDirectBufferTAsSpan Method

Returns a zero-copy ReadOnlySpanT over the entire buffer, starting at offset zero regardless of the current position.

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
public ReadOnlySpan<T> AsSpan()

Return Value

ReadOnlySpanT
A ReadOnlySpanT of length buffer size / sizeof(T) backed directly by the native memory buffer.
Exceptions
ExceptionCondition
NotSupportedException Thrown when the buffer exceeds MaxValue elements. Use CopyTo(IntPtr) for buffers larger than 2 GB.
See Also