Table of Contents

Class SharedMemoryAddressContainer

Namespace
OnixRuntime.Api.Internal
Assembly
OnixRuntime.dll

Contains a shared memory address pointer for passing and owning shared memory with an unmanaged context.

public class SharedMemoryAddressContainer : IDisposable
Inheritance
SharedMemoryAddressContainer
Implements
Derived
Inherited Members

Constructors

SharedMemoryAddressContainer(PointerContainer)

Initializes a new instance of the SharedMemoryAddressContainer class with a pointer.

protected SharedMemoryAddressContainer(SharedMemoryAddressContainer.PointerContainer ptr)

Parameters

ptr SharedMemoryAddressContainer.PointerContainer

The pointer container to assign.

SharedMemoryAddressContainer(ref PointerContainer)

Initializes a new instance of the SharedMemoryAddressContainer class with a pointer.

protected SharedMemoryAddressContainer(ref SharedMemoryAddressContainer.PointerContainer ptr)

Parameters

ptr SharedMemoryAddressContainer.PointerContainer

The pointer container to assign.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

~SharedMemoryAddressContainer()

Finalizer for the SharedMemoryAddressContainer class.

protected ~SharedMemoryAddressContainer()

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

SetMemoryAddressValues(PointerContainer)

Replaces the current memory address values with the values from the provided pointer container. This will not dispose the old one, if that's something you need to happen, call Dispose() first.

protected void SetMemoryAddressValues(SharedMemoryAddressContainer.PointerContainer ptr)

Parameters

ptr SharedMemoryAddressContainer.PointerContainer

Operators

operator ==(SharedMemoryAddressContainer?, SharedMemoryAddressContainer?)

Compares two instances of the SharedMemoryAddressContainer class for equality.

public static bool operator ==(SharedMemoryAddressContainer? left, SharedMemoryAddressContainer? right)

Parameters

left SharedMemoryAddressContainer

The left instance to compare.

right SharedMemoryAddressContainer

The right instance to compare.

Returns

bool

True if the instances are equal; otherwise, false.

operator !=(SharedMemoryAddressContainer?, SharedMemoryAddressContainer?)

Compares two instances of the SharedMemoryAddressContainer class for inequality.

public static bool operator !=(SharedMemoryAddressContainer? left, SharedMemoryAddressContainer? right)

Parameters

left SharedMemoryAddressContainer

The left instance to compare.

right SharedMemoryAddressContainer

The right instance to compare.

Returns

bool

True if the instances are not equal; otherwise, false.