Table of Contents

Namespace Jitter2.Unmanaged

Classes

MemoryHelper

Provides helper methods for allocating and managing unmanaged memory.

PartitionedBuffer<T>

Manages memory for unmanaged structs, storing them sequentially in contiguous memory blocks. Each struct can either be active or inactive.

PartitionedBuffer<T>.MaximumSizeException

Exception thrown when the buffer's internal indirection table reaches its maximum capacity.

Structs

JHandle<T>

Handle for an unmanaged object stored in a PartitionedBuffer<T>. The handle remains stable even when the underlying memory is resized.

MemoryHelper.IsolatedInt

Represents an integer value isolated in memory to prevent false sharing between multiple threads operating on adjacent data.

MemoryHelper.MemBlock12Real

A memory block with a size equivalent to twelve instances of the float type.

MemoryHelper.MemBlock16Real

A memory block with a size equivalent to sixteen instances of the float type.

MemoryHelper.MemBlock6Real

A memory block with a size equivalent to six instances of the float type.

MemoryHelper.MemBlock9Real

A memory block with a size equivalent to nine instances of the float type.