I’m playing with the new framework and I wonder if there is a way to convert Mutable memblocks to inmutable?
Dim i as MemoryBlock = MutableMemoryBlock.GetInMutable()?
I’m playing with the new framework and I wonder if there is a way to convert Mutable memblocks to inmutable?
Dim i as MemoryBlock = MutableMemoryBlock.GetInMutable()?
Dim Editable As New Xojo.Core.MutableMemoryBlock(SourceBlock)
You can go back & forth using the constructors of MemoryBlock (immutable) and MutableMemoryBlock
// to get an immutable memory block from a mutable one
Dim NotEditable As New Xojo.Core.MemoryBlock(MutableSourceBlock)
// to get an mutable memory block from a immutable one
Dim Editable As New Xojo.Core.MutableMemoryBlock(ImmutableSourceBlock)