/// <summary> /// Get the index of the slice. /// </summary> /// <param name="key">slice</param> /// <returns>index or -1 (not found)</returns> public unsafe int IndexOf(IJaggedArraySliceBase <T> key) { if (this._elemIndexList.Length < 1) { return(-1); } for (int i = 0; i < this._elemIndexList.Length; i++) { var slice = this[i]; if (slice.Equals(key)) { return(i); } } return(-1); }
private unsafe bool CheckStripperResult(IJaggedArraySliceBase <Char16> result, string ref_data) { return(this.CheckStripperResultImpl((char *)result.GetUnsafePtr(), result.Length, ref_data)); }