<div class="meta" robots="noindex">

</div>

Class

# Xojo.Core.MutableMemoryBlock

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2020r2. Please use `MemoryBlock</api/language/memoryblock>` as a replacement.

</div>

## Description

A mutable class for managing and modifying blocks of memory.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                                      | Type                                                  | Read-Only | Shared |
|-----------------------------------------------------------|-------------------------------------------------------|-----------|--------|
| `Data<xojo.core.mutablememoryblock.data>`                 | `Ptr</api/data_types/additional_types/ptr>`           | ✓         |        |
| `LittleEndian<xojo.core.mutablememoryblock.littleendian>` | `Boolean</api/data_types/boolean>`                    |           |        |
| `Size<xojo.core.mutablememoryblock.size>`                 | `UInteger</api/data_types/additional_types/uinteger>` | ✓         |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                        | Parameters                                                                                                                                                     | Returns                                               | Shared |
|-------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------|--------|
| `BooleanValue<xojo.core.mutablememoryblock.booleanvalue>`   | offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Boolean</api/data_types/boolean>`                  |                                                       |        |
| `Clone<xojo.core.mutablememoryblock.clone>`                 |                                                                                                                                                                | `MemoryBlock</api/language/memoryblock>`              |        |
| `Comparison<xojo.core.mutablememoryblock.comparison>`       |                                                                                                                                                                |                                                       |        |
| `Constructor<xojo.core.mutablememoryblock.constructor0>`    | bytes() As `Byte</api/data_types/additional_types/byte>`                                                                                                       |                                                       |        |
| `Constructor<xojo.core.mutablememoryblock.constructor1>`    | p As `Ptr</api/data_types/additional_types/ptr>`                                                                                                               |                                                       |        |
| `Constructor<xojo.core.mutablememoryblock.constructor2>`    | p As `Ptr</api/data_types/additional_types/ptr>`, size As `UInteger</api/data_types/additional_types/uinteger>`                                                |                                                       |        |
| `Constructor<xojo.core.mutablememoryblock.constructor3>`    | size As `UInteger</api/data_types/additional_types/uinteger>`                                                                                                  |                                                       |        |
| `Constructor<xojo.core.mutablememoryblock.constructor4>`    | bytes() As `Byte</api/data_types/additional_types/byte>`                                                                                                       |                                                       |        |
| `Constructor<xojo.core.mutablememoryblock.constructor5>`    | other As `MemoryBlock</api/language/memoryblock>`                                                                                                              |                                                       |        |
| `Constructor<xojo.core.mutablememoryblock.constructor6>`    | p As `Ptr</api/data_types/additional_types/ptr>`                                                                                                               |                                                       |        |
| `Constructor<xojo.core.mutablememoryblock.constructor7>`    | p As `Ptr</api/data_types/additional_types/ptr>`, size As `UInteger</api/data_types/additional_types/uinteger>`                                                |                                                       |        |
| `Constructor<xojo.core.mutablememoryblock.constructor8>`    | size As `UInteger</api/data_types/additional_types/uinteger>`                                                                                                  |                                                       |        |
| `CStringValue<xojo.core.mutablememoryblock.cstringvalue>`   | offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `CString</api/data_types/additional_types/cstring>` |                                                       |        |
| `CurrencyValue<xojo.core.mutablememoryblock.currencyvalue>` | offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Currency</api/data_types/currency>`                |                                                       |        |
| `DoubleValue<xojo.core.mutablememoryblock.doublevalue>`     | offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Double</api/data_types/double>`                    |                                                       |        |
| `IndexOf<xojo.core.mutablememoryblock.indexof>`             | offset As `UInteger</api/data_types/additional_types/uinteger>`, other As `MemoryBlock</api/language/memoryblock>`                                             | `UInteger</api/data_types/additional_types/uinteger>` |        |
| `Int16Value<xojo.core.mutablememoryblock.int16value>`       | offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Int16</api/data_types/additional_types/int16>`     |                                                       |        |
| `Int32Value<xojo.core.mutablememoryblock.int32value>`       | offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Int32</api/data_types/additional_types/int32>`     |                                                       |        |
| `Int64Value<xojo.core.mutablememoryblock.int64value>`       | offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Int64</api/data_types/additional_types/int64>`     |                                                       |        |
| `Int8Value<xojo.core.mutablememoryblock.int8value>`         | offset As `UInteger</api/data_types/additional_types/uinteger>`                                                                                                | `Int8</api/data_types/additional_types/int8>`         |        |
| `Left<xojo.core.mutablememoryblock.left>`                   | bytes As `UInteger</api/data_types/additional_types/uinteger>`                                                                                                 | `MemoryBlock</api/language/memoryblock>`              |        |
| `PtrValue<xojo.core.mutablememoryblock.ptrvalue>`           | offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Ptr</api/data_types/additional_types/ptr>`         |                                                       |        |
| `Remove<xojo.core.mutablememoryblock.remove>`               | offset As `UInteger</api/data_types/additional_types/uinteger>`, length As `UInteger</api/data_types/additional_types/uinteger>`                               |                                                       |        |
| `Right<xojo.core.mutablememoryblock.right>`                 | bytes As `UInteger</api/data_types/additional_types/uinteger>`                                                                                                 | `MemoryBlock</api/language/memoryblock>`              |        |
| `SingleValue<xojo.core.mutablememoryblock.singlevalue>`     | offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Single</api/data_types/single>`                    |                                                       |        |
| `UInt16Value<xojo.core.mutablememoryblock.uint16value>`     | offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `UInt16</api/data_types/additional_types/uint16>`   |                                                       |        |
| `UInt32Value<xojo.core.mutablememoryblock.uint32value>`     | offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `UInt32</api/data_types/additional_types/uint32>`   |                                                       |        |
| `UInt64Value<xojo.core.mutablememoryblock.uint64value>`     | offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `UInt64</api/data_types/additional_types/uint64>`   |                                                       |        |
| `UInt8Value<xojo.core.mutablememoryblock.uint8value>`       | offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `UInt8</api/data_types/additional_types/uint8>`     |                                                       |        |
| `WStringValue<xojo.core.mutablememoryblock.wstringvalue>`   | offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `WString</api/data_types/additional_types/wstring>` |                                                       |        |

## Property descriptions

<div id="xojo.core.mutablememoryblock.data">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Data

**Data** As `Ptr</api/data_types/additional_types/ptr>`

The memory data in the MemoryBlock.

This property is read-only.

This data pointer is invalidated when the MemoryBlock is changed.

<div id="xojo.core.mutablememoryblock.littleendian">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.LittleEndian

**LittleEndian** As `Boolean</api/data_types/boolean>`

When True, indicates that the MemoryBlock data is in LittleEndian format. The default is True.

Simple endian usage:

``` xojo
Var mb1 As New Xojo.Core.MemoryBlock(2) ' defaults to Little Endian = True on all platforms
mb1.Int8Value(0) = 1
mb1.Int8Value(1) = 2

Var firstUInt16 As Int16
firstUInt16 = mb1.UInt16Value(0)
' firstUInt16 = (256 * 2) + (1 * 1) = 513

mb1.LittleEndian = False
Var secondUInt16 As Int16
secondUInt16 = mb1.UInt16Value(0)
' secondUInt16 = (256 * 1) + (1 * 2) = 258
```

<div id="xojo.core.mutablememoryblock.size">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Size

**Size** As `UInteger</api/data_types/additional_types/uinteger>`

The size (in bytes) of the MemoryBlock.

This property is read-only.

If the size is unknown, this returns &hFFFFFFFF (32-bit apps) or &hFFFFFFFFFFFFFFFF (64-bit app).

## Method descriptions

<div id="xojo.core.mutablememoryblock.booleanvalue">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.BooleanValue

**BooleanValue**(offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Boolean</api/data_types/boolean>`)

Sets a Boolean value in the MemoryBlock at the specified offset (in bytes). Any non-zero value is considered True.

``` xojo
Var value As New Xojo.Core.MutableMemoryBlock(1)
value.BooleanValue(0) = True
```

<div id="xojo.core.mutablememoryblock.clone">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Clone

**Clone** As `MemoryBlock</api/language/memoryblock>`

Makes a copy of the MemoryBlock. If its size is known, it copies the content.

``` xojo
Var mb1 As New Xojo.Core.MemoryBlock(64)
Var mb2 As Xojo.Core.MemoryBlock = mb1.Clone
```

<div id="xojo.core.mutablememoryblock.comparison">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Comparison

**Comparison**

MemoryBlocks can be compared with each other using the "=" operator.

MemoryBlocks are considered equal for these conditions: \* The MemoryBlocks are the same object \* Both MemoryBlocks' data point to the same location \* Both MemoryBlocks' size and content are the same There is no concept of one MemoryBlock being greater than or less than another MemoryBlock.

<div id="xojo.core.mutablememoryblock.constructor0">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Constructor

**Constructor**(bytes() As `Byte</api/data_types/additional_types/byte>`)

<div class="note">

<div class="title">

Note

</div>

`Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.

</div>

Creates a MemoryBlock from an existing Byte array.

<div id="xojo.core.mutablememoryblock.constructor1">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Constructor

**Constructor**(p As `Ptr</api/data_types/additional_types/ptr>`)

<div class="note">

<div class="title">

Note

</div>

`Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.

</div>

Creates a MemoryBlock from an existing chunk of memory.

<div id="xojo.core.mutablememoryblock.constructor2">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Constructor

**Constructor**(p As `Ptr</api/data_types/additional_types/ptr>`, size As `UInteger</api/data_types/additional_types/uinteger>`)

<div class="note">

<div class="title">

Note

</div>

`Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.

</div>

Creates a MemoryBlock from an existing block of memory of a specific size.

<div id="xojo.core.mutablememoryblock.constructor3">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Constructor

**Constructor**(size As `UInteger</api/data_types/additional_types/uinteger>`)

<div class="note">

<div class="title">

Note

</div>

`Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.

</div>

Creates a MemoryBlock with the desired size in bytes.

<div id="xojo.core.mutablememoryblock.constructor4">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Constructor

**Constructor**(bytes() As `Byte</api/data_types/additional_types/byte>`)

<div class="note">

<div class="title">

Note

</div>

`Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.

</div>

Creates a MemoryBlock from an existing Byte array.

<div id="xojo.core.mutablememoryblock.constructor5">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Constructor

**Constructor**(other As `MemoryBlock</api/language/memoryblock>`)

<div class="note">

<div class="title">

Note

</div>

`Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.

</div>

Creates a new MemoryBlock with the data from an existing MemoryBlock.

<div id="xojo.core.mutablememoryblock.constructor6">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Constructor

**Constructor**(p As `Ptr</api/data_types/additional_types/ptr>`)

<div class="note">

<div class="title">

Note

</div>

`Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.

</div>

Creates a MemoryBlock from an existing chunk of memory.

<div id="xojo.core.mutablememoryblock.constructor7">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Constructor

**Constructor**(p As `Ptr</api/data_types/additional_types/ptr>`, size As `UInteger</api/data_types/additional_types/uinteger>`)

<div class="note">

<div class="title">

Note

</div>

`Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.

</div>

Creates a MemoryBlock from an existing block of memory of a specific size.

<div id="xojo.core.mutablememoryblock.constructor8">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Constructor

**Constructor**(size As `UInteger</api/data_types/additional_types/uinteger>`)

<div class="note">

<div class="title">

Note

</div>

`Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.

</div>

Creates a MemoryBlock with the desired size in bytes.

Reserve 1K:

``` xojo
Var mb As New Xojo.Core.MemoryBlock(1024) ' Reserve 1K bytes
```

<div id="xojo.core.mutablememoryblock.cstringvalue">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.CStringValue

**CStringValue**(offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `CString</api/data_types/additional_types/cstring>`)

Sets a CString value in the MemoryBlock at the specified offset (in bytes).

<div id="xojo.core.mutablememoryblock.currencyvalue">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.CurrencyValue

**CurrencyValue**(offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Currency</api/data_types/currency>`)

Sets an 8-byte Currency value in the MemoryBlock at the specified offset (in bytes).

``` xojo
Var c As Currency = 12.34
Var value As New Xojo.Core.MutableMemoryBlock(8)
value.CurrencyValue(0) = c
```

<div id="xojo.core.mutablememoryblock.doublevalue">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.DoubleValue

**DoubleValue**(offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Double</api/data_types/double>`)

Sets a Double value in the MemoryBlock at the specified offset (in bytes).

``` xojo
Var d As Double = 12.34
Var value As New Xojo.Core.MutableMemoryBlock(8)
value.DoubleValue(0) = d
```

<div id="xojo.core.mutablememoryblock.indexof">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.IndexOf

**IndexOf**(offset As `UInteger</api/data_types/additional_types/uinteger>`, other As `MemoryBlock</api/language/memoryblock>`) As `UInteger</api/data_types/additional_types/uinteger>`

Returns the position of the other MemoryBlock starting at the offset. Returns -1 if other was not found.

<div id="xojo.core.mutablememoryblock.int16value">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Int16Value

**Int16Value**(offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Int16</api/data_types/additional_types/int16>`)

Sets an Int16 value in the MemoryBlock at the specified offset (in bytes).

<div id="xojo.core.mutablememoryblock.int32value">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Int32Value

**Int32Value**(offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Int32</api/data_types/additional_types/int32>`)

Sets an Int32 value in the MemoryBlock at the specified offset (in bytes).

<div id="xojo.core.mutablememoryblock.int64value">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Int64Value

**Int64Value**(offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Int64</api/data_types/additional_types/int64>`)

Sets an Int64 value in the MemoryBlock at the specified offset (in bytes).

<div id="xojo.core.mutablememoryblock.int8value">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Int8Value

**Int8Value**(offset As `UInteger</api/data_types/additional_types/uinteger>`) As `Int8</api/data_types/additional_types/int8>`

Gets or sets an Int8 value in the MemoryBlock at the specified offset (in bytes).

<div id="xojo.core.mutablememoryblock.left">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Left

**Left**(bytes As `UInteger</api/data_types/additional_types/uinteger>`) As `MemoryBlock</api/language/memoryblock>`

Gets the specified number of bytes at the beginning of the MemoryBlock.

<div id="xojo.core.mutablememoryblock.ptrvalue">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.PtrValue

**PtrValue**(offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Ptr</api/data_types/additional_types/ptr>`)

Sets A Ptr value in the MemoryBlock at the specified offset (in bytes).

<div id="xojo.core.mutablememoryblock.remove">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Remove

**Remove**(offset As `UInteger</api/data_types/additional_types/uinteger>`, length As `UInteger</api/data_types/additional_types/uinteger>`)

Removes length bytes from the MemoryBlock starting at offset, adjusting its size. This potentially invalidates the Data property.

<div id="xojo.core.mutablememoryblock.right">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.Right

**Right**(bytes As `UInteger</api/data_types/additional_types/uinteger>`) As `MemoryBlock</api/language/memoryblock>`

Gets the bytes from the end of the MemoryBlock.

Get the last two bytes of a MemoryBlock:

``` xojo
Var bytes() As Byte
bytes.Append(&h0a)
bytes.Append(&h0b)
bytes.Append(&h0c)

Var data As New Xojo.Core.MemoryBlock(bytes)
Var mb As Xojo.Core.MemoryBlock = data.Right(2)
```

<div id="xojo.core.mutablememoryblock.singlevalue">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.SingleValue

**SingleValue**(offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `Single</api/data_types/single>`)

Sets a Single value in the MemoryBlock at the specified offset (in bytes).

<div id="xojo.core.mutablememoryblock.uint16value">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.UInt16Value

**UInt16Value**(offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `UInt16</api/data_types/additional_types/uint16>`)

Sets an UInt16 value in the MemoryBlock at the specified offset (in bytes).

<div id="xojo.core.mutablememoryblock.uint32value">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.UInt32Value

**UInt32Value**(offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `UInt32</api/data_types/additional_types/uint32>`)

Sets an UInt32 value in the MemoryBlock at the specified offset (in bytes).

<div id="xojo.core.mutablememoryblock.uint64value">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.UInt64Value

**UInt64Value**(offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `UInt64</api/data_types/additional_types/uint64>`)

Sets an UInt64 value in the MemoryBlock at the specified offset (in bytes).

<div id="xojo.core.mutablememoryblock.uint8value">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.UInt8Value

**UInt8Value**(offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `UInt8</api/data_types/additional_types/uint8>`)

Sets an UInt8 value in the MemoryBlock at the specified offset (in bytes).

<div id="xojo.core.mutablememoryblock.wstringvalue">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Core.MutableMemoryBlock.WStringValue

**WStringValue**(offset As `UInteger</api/data_types/additional_types/uinteger>`, `Assigns</api/language/assigns>` value As `WString</api/data_types/additional_types/wstring>`)

Sets a WString value in the MemoryBlock at the specified offset (in bytes).

## Compatibility

All project types on all supported operating systems.

## See also

`MemoryBlock</api/language/memoryblock>` parent class; `MemoryBlock</api/language/memoryblock>`, `MemoryBlock</api/language/memoryblock>` classes
