ltmmMemory.CopyData Method

Visual Basic Example

Syntax

object.CopyData(Index As Long, Count As Long, Data As VARIANT)

Remarks

Copies a block of data to a user - defined buffer.

If the size of data to retrieve is larger than the size available after the offset, the method will retrieve only the available data between the offset and the end of the buffer.

The caller is responsible for allocating the required memory for the data.

The region from which the new data is copied will be locked for the call duration.

Use the ltmmMemory.SetData Method to copy the data from Data into the ltmmMemory object's data.

Use the CopyData Method to copy the data from the ltmmMemory object into Data. Data must exist and should be allocated already.

Use the ltmmMemory.GetData Method to create (allocate) a variant and data from the ltmmMemory object is copied into this newly created variant.

See Also

Elements:

ltmmMemory.BufferSize Property, ltmmMemory.GrowBy Property, ltmmMemory.LockBuffer Method, ltmmMemory.GetByte Method, ltmmMemory.GetData Method, ltmmMemory.LockRegion Method, ltmmMemory.SetByte Method, ltmmMemory.SetData Method, ltmmMemory.Unlock Method

Topics:

Multimedia Properties, Methods and Events