ScsiPortMoveMemory function (srb.h)

The ScsiPortMoveMemory routine copies data from one location to another.

Note  The SCSI port driver and SCSI miniport driver models may be altered or unavailable in the future. Instead, we recommend using the Storport driver and Storport miniport driver models.
 

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