Click or drag to resize

PtrLenWrite Function

X#
Determine the number of bytes that can be written at a given pointer.

Namespace:  XSharp.VO
Assembly:  XSharp.VO (in XSharp.VO.dll) Version: 2.19
Syntax
 FUNCTION PtrLenWrite(
	lpv AS IntPtr
) AS DWORD
Request Example View Source

Parameters

lpv
Type: IntPtr

Return Value

Type: DWord
The number of bytes that can be written, starting from the location pointed to by ptrRead.
If ptrRead is an invalid pointer or a write-protected pointer, a value of 0 is returned.
Remarks
Examples
This example uses PtrLen() as an argument to HexDump():
X#
1HexDump(ptrBuff, PtrLen(ptrBuff)
See Also