20 lines
469 B
C#
20 lines
469 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
|
|
namespace StgSharp.Intrinsic
|
|
{
|
|
public static class UnsafeCompute
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe int IndexOfCharPair(char* source, int pairValue, int length)
|
|
{
|
|
return InternalIO.Intrinsic.index_pair(source, pairValue, length);
|
|
}
|
|
|
|
|
|
}
|
|
}
|