例如:在{0,1,2,3,1,2,3}中搜索{1,2},则会返回list:[2,5],均为最后索引的位置。
public static List<int> IndexOfInclude(
this ReadOnlySpan<byte> srcByteArray,
int offset,
int length,
Span<byte> subByteArray
)
<ExtensionAttribute>
Public Shared Function IndexOfInclude (
srcByteArray As ReadOnlySpan(Of Byte),
offset As Integer,
length As Integer,
subByteArray As Span(Of Byte)
) As List(Of Integer)
[<ExtensionAttribute>]
static member IndexOfInclude :
srcByteArray : ReadOnlySpan<byte> *
offset : int *
length : int *
subByteArray : Span<byte> -> List<int>
[缺少 "M:TouchSocket.Core.SystemExtension.IndexOfInclude(System.ReadOnlySpan{System.Byte},System.Int32,System.Int32,System.Span{System.Byte})" 的 <param name="srcByteArray"/> 文档]
[缺少 "M:TouchSocket.Core.SystemExtension.IndexOfInclude(System.ReadOnlySpan{System.Byte},System.Int32,System.Int32,System.Span{System.Byte})" 的 <param name="offset"/> 文档]
[缺少 "M:TouchSocket.Core.SystemExtension.IndexOfInclude(System.ReadOnlySpan{System.Byte},System.Int32,System.Int32,System.Span{System.Byte})" 的 <param name="length"/> 文档]
[缺少 "M:TouchSocket.Core.SystemExtension.IndexOfInclude(System.ReadOnlySpan{System.Byte},System.Int32,System.Int32,System.Span{System.Byte})" 的 <param name="subByteArray"/> 文档]
[缺少 "M:TouchSocket.Core.SystemExtension.IndexOfInclude(System.ReadOnlySpan{System.Byte},System.Int32,System.Int32,System.Span{System.Byte})" 的 <returns> 文档]