MemMove Function | |
Move one memory buffer to another.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax FUNCTION MemMove(
ptrDest AS IntPtr,
ptrSource AS IntPtr,
dwCount AS DWORD
) AS IntPtr
public static IntPtr MemMove(
IntPtr ptrDest,
IntPtr ptrSource,
uint dwCount
)
Request Example
View SourceParameters
- ptrDest
- Type: IntPtr
A pointer to the destination memory buffer. - ptrSource
- Type: IntPtr
A pointer to the source memory buffer. - dwCount
- Type: DWord
The number of bytes to copy.
Return Value
Type:
IntPtr
A pointer to the destination memory buffer.
Remarks
MemMove() copies the specified number of bytes from the source memory buffer to the destination memory buffer.
If portions of the source buffer overlap with portions of the destination buffer, the overlapping region is copied and kept for the duration of the operation before it is overwritten.
Tip |
---|
This function allows the direct manipulation of a memory location and should be used with extreme care.
|
Examples
This example uses MemMove():
1LOCAL pszDest := "Hi there" AS PSZ
2LOCAL pszSrc := "***" AS PSZ
3MemMove(pszDest, pszSrc, 3)
4? pszDest
See Also