Quantum 3
3.0.9
A utility class to optimize periodic checks by saving a iteration value for each index of the initial capacity. More...
Public Member Functions | |
| MailboxSet8 (int capacity, Native.Allocator allocator) | |
| Create a mailbox buffer with a given capacity. Allocates one byte per Capacity. More... | |
| bool | AlreadyChecked (int index) |
| Check if a certain index has already been checked this pass. Will set the index to the current key if it was not checked yet. More... | |
| void | Dispose (Native.Allocator allocator) |
| Dispose and free memory. More... | |
| void | SetCapacity (int capacity, Native.Allocator allocator) |
| Set the capacity of the mailbox buffer. More... | |
| bool | ShouldCheck (int index) |
| Check if a certain index has already not been checked this pass. Will set the index to the current key if it was not checked yet. More... | |
| void | StartSearch () |
| Start a new search by incrementing the key. Will reset the mailbox buffer and restart at 0 when overflowing the byte (255). More... | |
Public Attributes | |
| int | Capacity => _capacity |
| The size of the mailbox buffer. More... | |
A utility class to optimize periodic checks by saving a iteration value for each index of the initial capacity.
|
inline |
Create a mailbox buffer with a given capacity. Allocates one byte per Capacity.
| capacity | Capacity |
| allocator | Memory allocator. |
|
inline |
Dispose and free memory.
| allocator | Allocator |
|
inline |
Set the capacity of the mailbox buffer.
| capacity | New Capacity |
| allocator | Allocator |
|
inline |
Start a new search by incrementing the key. Will reset the mailbox buffer and restart at 0 when overflowing the byte (255).
|
inline |
Check if a certain index has already been checked this pass. Will set the index to the current key if it was not checked yet.
| index | Index to check, must be Capacity |
true if the index was already processed this key
|
inline |
Check if a certain index has already not been checked this pass. Will set the index to the current key if it was not checked yet.
| index | Index to check, must be Capacity |
true if the index was not already processed this key| int Quantum.MailboxSet8.Capacity => _capacity |
The size of the mailbox buffer.