ltmmMemory.SetData Method

Visual Basic Example

Syntax

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

Remarks

Sets new data in the object’s buffer at a specified index with a specified size.

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

The region to 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 ltmmMemory.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.CopyData Method, ltmmMemory.GetByte Method, ltmmMemory.GetData Method, ltmmMemory.LockRegion Method, ltmmMemory.SetByte Method, ltmmMemory.Unlock Method

Topics:

Multimedia Properties, Methods and Events