Xojo.Core.MemoryBlock.Clone

From Xojo Documentation

Revision as of 14:59, 24 August 2018 by PLefebvre (talk | contribs) (Created page with "{{MethodBox | name = Clone | ownertype = class | scope = public | parameters = | owner = Xojo.Core.MemoryBlock | returntype = Xojo.Core.MemoryBlock }} {{Description |...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

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