Xojo.Core.MemoryBlock.Clone

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

Xojo.Core.MemoryBlock.Clone() As Xojo.Core.MemoryBlock

Supported for all project types and targets.

Makes a copy of the MemoryBlock. If its size is known, it copies the content.

Sample Code

Var mb1 As New Xojo.Core.MemoryBlock(64)
Var mb2 As Xojo.Core.MemoryBlock = mb1.Clone