 | ReadOnlyMemoryTTryGetArray Method |
Tries to get the underlying array segment. Returns false for native-backed memory.
Namespace: SystemAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntaxpublic bool TryGetArray(
out ArraySegment<T> segment
)
Public Function TryGetArray (
<OutAttribute> ByRef segment As ArraySegment(Of T)
) As Boolean
Parameters
- segment ArraySegmentT
- When this method returns , the array segment backing this memory
Return Value
Boolean if the memory is array-backed or empty;
if it is native-backed
See Also