Table of Contents

Interface IVirtualHeap

Namespace
RDCore.SDK.Runtime.Abstract.Execution
Assembly
RDCore.SDK.dll

A service that manages the run-time memory structure of an execution context.

public interface IVirtualHeap : ISymbolResolver, ISymbolProvider
Inherited Members

Remarks

⚖️RDCore provides an implementation of this interface licensed under GPLv3.

Methods

Allocate(Uri, VBTypedValue)

Allocates the specified VBTypedValue under the specified symbolUri at the current memory address pointer.

long Allocate(Uri symbolUri, VBTypedValue value)

Parameters

symbolUri Uri

The Uri associated with this allocated memory space.

value VBTypedValue

The VBTypedValue to be allocated.

Returns

long

Remarks

The RDCore implementation is intended to be thread-safe.

Allocate(Uri, int)

Allocates the specified number of bytes (size) under the specified symbolUri at the current memory address pointer.

long Allocate(Uri symbolUri, int size)

Parameters

symbolUri Uri

The Uri associated with this allocated memory space.

size int

The size (bytes) of the allocated memory.

Returns

long

Remarks

The RDCore implementation is intended to be thread-safe.

CreateObject(VBClassModuleSymbol)

Creates a new VBObjectValue for the specified Symbol.

VBObjectValue CreateObject(VBClassModuleSymbol symbol)

Parameters

symbol VBClassModuleSymbol

The VBClassModuleSymbol to instantiate.

Returns

VBObjectValue

Remarks

The RDCore implementation is intended to be thread-safe.

Deallocate(Uri)

Deallocates the memory space held at the specified Uri.

void Deallocate(Uri symbolUri)

Parameters

symbolUri Uri

The semantic ID of the symbol to deallocate.

SetValue(Symbol, VBTypedValue)

Associates the specified VBTypedValue value to the specified Symbol.

void SetValue(Symbol symbol, VBTypedValue value)

Parameters

symbol Symbol

The Symbol receiving the assignment.

value VBTypedValue

The VBTypedValue to be assigned.

Remarks

The RDCore implementation is intended to be thread-safe.