From Xojo Documentation

Revision as of 17:25, 11 August 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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