示例#1
0
 /// <summary>
 /// Creates an instance of <see cref="ReadOnlySequence{T}"/> from the <see cref="OwnedMemory{T}"/>.
 /// Consumer is expected to manage lifetime of memory until <see cref="ReadOnlySequence{T}"/> is not used anymore.
 /// </summary>
 public ReadOnlySequence(OwnedMemory <T> ownedMemory) : this(ownedMemory, 0, ownedMemory.Length)
 {
 }