Files
Misaki.HighPerformance/docfx/_site/api/Misaki.HighPerformance.LowLevel.Collections.html

389 lines
19 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Namespace Misaki.HighPerformance.LowLevel.Collections | Misaki.HighPerformance </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Namespace Misaki.HighPerformance.LowLevel.Collections | Misaki.HighPerformance ">
<link rel="icon" href="../favicon.ico">
<link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
<meta name="docfx:navrel" content="../toc.html">
<meta name="docfx:tocrel" content="toc.html">
<meta name="docfx:rel" content="../">
<meta name="loc:inThisArticle" content="In this article">
<meta name="loc:searchResultsCount" content="{count} results for &quot;{query}&quot;">
<meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
<meta name="loc:tocFilter" content="Filter by title">
<meta name="loc:nextArticle" content="Next">
<meta name="loc:prevArticle" content="Previous">
<meta name="loc:themeLight" content="Light">
<meta name="loc:themeDark" content="Dark">
<meta name="loc:themeAuto" content="Auto">
<meta name="loc:changeTheme" content="Change theme">
<meta name="loc:copy" content="Copy">
<meta name="loc:downloadPdf" content="Download PDF">
<script type="module" src="./../public/docfx.min.js"></script>
<script>
const theme = localStorage.getItem('theme') || 'auto'
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
</script>
</head>
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
<header class="bg-body border-bottom">
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
<div class="container-xxl flex-nowrap">
<a class="navbar-brand" href="../index.html">
<img id="logo" class="svg" src="../logo.svg" alt="Misaki.HighPerformance">
Misaki.HighPerformance
</a>
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
<i class="bi bi-three-dots"></i>
</button>
<div class="collapse navbar-collapse" id="navpanel">
<div id="navbar">
<form class="search" role="search" id="search">
<i class="bi bi-search"></i>
<input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
</form>
</div>
</div>
</div>
</nav>
</header>
<main class="container-xxl">
<div class="toc-offcanvas">
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<nav class="toc" id="toc"></nav>
</div>
</div>
</div>
<div class="content">
<div class="actionbar">
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
<i class="bi bi-list"></i>
</button>
<nav id="breadcrumb"></nav>
</div>
<article data-uid="Misaki.HighPerformance.LowLevel.Collections">
<h1 id="Misaki_HighPerformance_LowLevel_Collections" data-uid="Misaki.HighPerformance.LowLevel.Collections" class="text-break">Namespace Misaki.HighPerformance.LowLevel.Collections</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>
<div class="markdown level0 remarks"></div>
<h3 id="structs">
Structs
</h3>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedString1024.html">FixedString1024</a></dt>
<dd><p>Represents a stack allocated fixed-size string of length 1024 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedString128.html">FixedString128</a></dt>
<dd><p>Represents a stack allocated fixed-size string of length 128 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedString2048.html">FixedString2048</a></dt>
<dd><p>Represents a stack allocated fixed-size string of length 2048 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedString256.html">FixedString256</a></dt>
<dd><p>Represents a stack allocated fixed-size string of length 256 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedString32.html">FixedString32</a></dt>
<dd><p>Represents a stack allocated fixed-size string of length 32 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedString4096.html">FixedString4096</a></dt>
<dd><p>Represents a stack allocated fixed-size string of length 4096 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedString512.html">FixedString512</a></dt>
<dd><p>Represents a stack allocated fixed-size string of length 512 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedString64.html">FixedString64</a></dt>
<dd><p>Represents a stack allocated fixed-size string of length 64 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedText1024.html">FixedText1024</a></dt>
<dd><p>Represents a stack allocated fixed-size UTF-8 encoded string of length 1024 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedText128.html">FixedText128</a></dt>
<dd><p>Represents a stack allocated fixed-size UTF-8 encoded string of length 128 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedText2048.html">FixedText2048</a></dt>
<dd><p>Represents a stack allocated fixed-size UTF-8 encoded string of length 2048 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedText256.html">FixedText256</a></dt>
<dd><p>Represents a stack allocated fixed-size UTF-8 encoded string of length 256 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedText32.html">FixedText32</a></dt>
<dd><p>Represents a stack allocated fixed-size UTF-8 encoded string of length 32 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedText4096.html">FixedText4096</a></dt>
<dd><p>Represents a stack allocated fixed-size UTF-8 encoded string of length 4096 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedText512.html">FixedText512</a></dt>
<dd><p>Represents a stack allocated fixed-size UTF-8 encoded string of length 512 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.FixedText64.html">FixedText64</a></dt>
<dd><p>Represents a stack allocated fixed-size UTF-8 encoded string of length 64 bytes.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.HashMapHelper-1.html">HashMapHelper&lt;TKey&gt;</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.ReadOnlyUnsafeCollection-1.html">ReadOnlyUnsafeCollection&lt;T&gt;</a></dt>
<dd><p>Provides a read-only, unsafe view over a contiguous region of unmanaged memory as an array of elements of type T.
Enables efficient, low-level access to memory without copying or additional safety checks.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.ReadOnlyUnsafeCollection-1.Enumerator.html">ReadOnlyUnsafeCollection&lt;T&gt;.Enumerator</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.SpanBitSet.html">SpanBitSet</a></dt>
<dd><p>The <a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.SpanBitSet.html">SpanBitSet</a> struct
represents a non resizable collection of bits.
Used to set, check and clear bits on a allocated <a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeBitSet.html">UnsafeBitSet</a> or on the stack.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.SpanBitSet.Iterator.html">SpanBitSet.Iterator</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeArray-1.html">UnsafeArray&lt;T&gt;</a></dt>
<dd><p>A structure for managing an array of unmanaged types with unsafe memory operations.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeArray-1.Enumerator.html">UnsafeArray&lt;T&gt;.Enumerator</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeBitSet.html">UnsafeBitSet</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeBitSet.Iterator.html">UnsafeBitSet.Iterator</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeChunkedList-1.html">UnsafeChunkedList&lt;T&gt;</a></dt>
<dd><p>A collection that stores elements in fixed-size chunks, enabling stable element addresses
and eliminating large reallocation during growth. Adding elements never moves existing ones.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeChunkedList-1.Enumerator.html">UnsafeChunkedList&lt;T&gt;.Enumerator</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeChunkedList-1.ParallelReader.html">UnsafeChunkedList&lt;T&gt;.ParallelReader</a></dt>
<dd><p>A parallel reader for an UnsafeChunkedList.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeChunkedList-1.ParallelWriter.html">UnsafeChunkedList&lt;T&gt;.ParallelWriter</a></dt>
<dd><p>A parallel writer for an UnsafeChunkedList.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeHashMap-2.html">UnsafeHashMap&lt;TKey, TValue&gt;</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeHashMap-2.Enumerator.html">UnsafeHashMap&lt;TKey, TValue&gt;.Enumerator</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeHashSet-1.html">UnsafeHashSet&lt;T&gt;</a></dt>
<dd><p>A collection that provides fast, unsafe operations for managing a set of unmanaged types. It supports adding,
removing, and checking for values.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeHashSet-1.Enumerator.html">UnsafeHashSet&lt;T&gt;.Enumerator</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeList-1.html">UnsafeList&lt;T&gt;</a></dt>
<dd><p>A collection that allows for unsafe operations on a list of unmanaged types.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeList-1.Enumerator.html">UnsafeList&lt;T&gt;.Enumerator</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeList-1.ParallelReader.html">UnsafeList&lt;T&gt;.ParallelReader</a></dt>
<dd><p>A Parallel reader for an UnsafeList.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeList-1.ParallelWriter.html">UnsafeList&lt;T&gt;.ParallelWriter</a></dt>
<dd><p>A parallel writer for an UnsafeList.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeMultiHashMap-2.html">UnsafeMultiHashMap&lt;TKey, TValue&gt;</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeMultiHashMap-2.Enumerator.html">UnsafeMultiHashMap&lt;TKey, TValue&gt;.Enumerator</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeMultiHashMap-2.Iterator.html">UnsafeMultiHashMap&lt;TKey, TValue&gt;.Iterator</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeMultiHashMap-2.ValueEnumerable.html">UnsafeMultiHashMap&lt;TKey, TValue&gt;.ValueEnumerable</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeMultiHashMap-2.ValueEnumerator.html">UnsafeMultiHashMap&lt;TKey, TValue&gt;.ValueEnumerator</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeParallelHashMapData-2.html">UnsafeParallelHashMapData&lt;TKey, TValue&gt;</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeParallelHashMap-2.html">UnsafeParallelHashMap&lt;TKey, TValue&gt;</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeParallelHashMap-2.ParallelWriter.html">UnsafeParallelHashMap&lt;TKey, TValue&gt;.ParallelWriter</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeParallelQueue-1.html">UnsafeParallelQueue&lt;T&gt;</a></dt>
<dd><p>A dynamically resizing, parallel, lock-free queue using unmanaged chunks.
Uses a very brief spin lock only during chunk allocation, alongside a lock-free segment cache.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeParallelQueue-1.ParallelConsumer.html">UnsafeParallelQueue&lt;T&gt;.ParallelConsumer</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeParallelQueue-1.ParallelProducer.html">UnsafeParallelQueue&lt;T&gt;.ParallelProducer</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeQueue-1.html">UnsafeQueue&lt;T&gt;</a></dt>
<dd><p>A structure that implements a queue using unmanaged types for efficient memory management.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeQueue-1.Enumerator.html">UnsafeQueue&lt;T&gt;.Enumerator</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeSlotMap-1.html">UnsafeSlotMap&lt;T&gt;</a></dt>
<dd><p>Provides an unsafe, high-performance slot map for storing and managing unmanaged values, supporting fast insertion,
removal, and lookup by slot index and generation.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeSlotMap-1.Enumerator.html">UnsafeSlotMap&lt;T&gt;.Enumerator</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeSparseSet-1.html">UnsafeSparseSet&lt;T&gt;</a></dt>
<dd><p>A sparse set data structure that provides O(1) insertion, deletion, and lookup operations.
The sparse set uses three arrays: a dense array for storing values, a sparse array for mapping indices,
and a reverse array for mapping dense indices back to sparse indices.
Sparse indices work like entity IDs and are automatically generated.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeSparseSet-1.Enumerator.html">UnsafeSparseSet&lt;T&gt;.Enumerator</a></dt>
<dd></dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeStack-1.html">UnsafeStack&lt;T&gt;</a></dt>
<dd><p>Provides a high-performance, unsafe stack data structure for unmanaged types, supporting manual memory management
and allocation control.</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Misaki.HighPerformance.LowLevel.Collections.UnsafeStack-1.Enumerator.html">UnsafeStack&lt;T&gt;.Enumerator</a></dt>
<dd></dd>
</dl>
</article>
<div class="contribution d-print-none">
</div>
</div>
<div class="affix">
<nav id="affix"></nav>
</div>
</main>
<div class="container-xxl search-results" id="search-results"></div>
<footer class="border-top text-secondary">
<div class="container-xxl">
<div class="flex-fill">
<span>Made with <a href="https://dotnet.github.io/docfx">docfx</a></span>
</div>
</div>
</footer>
</body>
</html>