Xojo.Core.MemoryBlock.Clone

From Xojo Documentation

Revision as of 17:25, 11 August 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. It will go offline as of October 2, 2023. Please visit the new Xojo documentation site! - you will be redirected shortly...
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