Table of Contents

Class NativeMemoryManager

Namespace
Sdl3Sharp.Utilities
Assembly
Sdl3Sharp.dll

Manages and represents allocated native memory

public sealed class NativeMemoryManager : NativeMemoryManagerBase, IDisposable
Inheritance
NativeMemoryManager
Implements
Inherited Members

Remarks

Note: Always remember to dispose NativeMemoryManager when the memory they're managing is no longer needed. That also frees the allocated memory.

Properties

Length

Gets the number of bytes in the allocated memory region this NativeMemoryManagerBase represents

public override nuint Length { get; }

Property Value

nuint

The number of bytes in the allocated memory region this NativeMemoryManagerBase represents

Pointer

Gets a pointer to the start of the allocated memory region this NativeMemoryManagerBase represents

public override nint Pointer { get; }

Property Value

nint

A pointer to the start of the allocated memory region this NativeMemoryManagerBase represents

Methods

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

A value indicating whether this method is called from Dispose() (true) or from the finalizer (false)

Remarks

This operation will free the allocated memory region this NativeMemoryManager represents.

Exceptions

InvalidOperationException
See Also

See Also