Xojo.Core.MutableMemoryBlock.Insert
From Xojo Documentation
Method
Xojo.Core.MutableMemoryBlock.Insert(offset As UInteger, other As Xojo.Core.MemoryBlock)
Supported for all project types and targets.
Supported for all project types and targets.
Inserts other data as a MemoryBlock into the MemoryBlock at the specified offset (byte position). This invalidates the Data property.
Method
Xojo.Core.MutableMemoryBlock.Insert(offset As UInteger, other() As Byte)
Supported for all project types and targets.
Supported for all project types and targets.
Inserts other data as a Byte array into the MemoryBlock at the specified offset (byte position). This invalidates the Data property.
Exceptions
- NilObjectException if other is Nil.
- RuntimeException if the source MemoryBlock has an unknown size or if the other MemoryBlock has an unknown size.
- OutOfBoundsException if offset is greater than the size of the MemoryBlock.