ScsiPortMoveMemory function (srb.h)
The ScsiPortMoveMemory routine copies data from one location to another.
Syntax
SCSIPORT_API VOID ScsiPortMoveMemory(
[in] PVOID WriteBuffer,
[in] PVOID ReadBuffer,
[in] ULONG Length
);
Parameters
[in] WriteBuffer
Pointer to the destination buffer.
[in] ReadBuffer
Pointer to the source buffer.
[in] Length
Specifies how many bytes to transfer from ReadBuffer to WriteBuffer.
Return value
None
Remarks
ScsiPortMoveMemory can be called if a miniport driver needs to copy data from one system-allocated area to another. For example, a miniport driver might call ScsiPortMoveMemory to copy pertinent SRB values into the driver's SRB extension.
The (ReadBuffer + Length) can overlap the area pointed to by WriteBuffer.
Each of the given buffer areas must be at least sizeof(Length).
Requirements
Requirement | Value |
---|---|
Target Platform | Universal |
Header | srb.h |
Library | Storport.lib |