Buffer: BlockCopy

BlockCopy

Copies the bytes from the source array to the destination array.



 Public Sub BlockCopy(
	  ByRef SrcArray As Variant,
	  ByVal SourceIndex As Long,
	  ByRef DstArray As Variant,
	  ByVal DestinationIndex As Long,
	  ByVal Count As Long )

Parameters

SrcArray
[ByRef] Variant. The array to copy bytes from.
SourceIndex
[ByVal] Long. The starting byte position to begin copying.
DstArray
[ByRef] Variant. The array to receive the bytes.
DestinationIndex
[ByVal] Long. The starting byte position to begin setting bytes.
Count
[ByVal] Long. The number of bytes to be copied.

Remarks

The arrays are treated as byte arrays, so no datatype conversion takes place. All indexes are in bytes, not in the datatype of the specific array.

The lowerbound of the arrays is ignored. The first byte is at index 0.

See Also

Project VBCorLib Overview Class Buffer Overview Buffer Properties Buffer Methods ByteLength