Functions.MemWord 方法 |
命名空间: XSharp.RT
FUNCTION MemWord( ptrBuffer AS IntPtr, dwValue AS WORD, dwCount AS DWORD ) AS IntPtr
public static IntPtr MemWord( IntPtr ptrBuffer, ushort dwValue, uint dwCount )
1Function Start() 2 LOCAL ptrW := "ABCDEFGHIJ" AS PSZ 3 ? MemWord(ptrW, Bin2W("CD"), 3) // 一个指针 4 ? MemWord(ptrW, Bin2W("CD"), 1) 5 // 在 ptrW 的第一个字中未找到 6 // 0000:0000