Functions.MemInt 方法 |
命名空间: XSharp.RT
FUNCTION MemInt( ptrBuffer AS IntPtr, iValue AS LONG, dwCount AS DWORD ) AS IntPtr
public static IntPtr MemInt( IntPtr ptrBuffer, int iValue, uint dwCount )
1FUNCTION Start() 2 LOCAL ptrI := "ABCDEFGHIJ" AS PSZ 3 ? MemInt(ptrI, Bin2I("EFGH"), 2) // 一个指针 4 ? MemInt(ptrI, Bin2I("EFGH"), 1) 5// 在 ptrI 的第一个整数中未找到 0000:0000