MemShort Function |
|
Namespace: 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 // Note: short integer translation of "AB" 4 // is 16961 5 ? MemShort(ptrSI, 16961,2) // A pointer 6 ? MemShort(ptrSI, 16961,1) // A pointer 7 // Same pointer as above