Skip to content

Commit

Permalink
Add TlsfAllocator.ChunkAllocator property
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Jul 14, 2024
1 parent 7c03db9 commit a373129
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/XenoAtom.Allocators/TlsfAllocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ public TlsfAllocator(IMemoryChunkAllocator context, in TlsfAllocatorConfig confi
_bins = new BinsDirectory();
}

/// <summary>
/// Gets the associated chunk allocator.
/// </summary>
public IMemoryChunkAllocator ChunkAllocator => _context;

/// <summary>
/// Gets a read-only span of the chunks allocated by this allocator.
/// </summary>
Expand Down

0 comments on commit a373129

Please sign in to comment.