Functions.MemShort 方法 |
命名空间: XSharp.RT
FUNCTION MemShort( ptrBuffer AS IntPtr, siValue AS SHORT, dwCount AS DWORD ) AS IntPtr
public static IntPtr MemShort( IntPtr ptrBuffer, short siValue, uint dwCount )
1FUNCTION StartShort() 2 LOCAL ptrSI := "ABCDEFGHIJ" AS PSZ 3 // 注意:短整数转换的 "AB" 的值为 16961 4 ? MemShort(ptrSI, 16961,2) // 一个指针 5 ? MemShort(ptrSI, 16961,1) // 一个指针 6 // 与上面的指针相同