Namespace Unity.Media.Utilities
Classes
GrowableBufferExtensions
Extensions for GrowableBuffer<T>
Utility
Various utilities for unity media collections
ValidatableExtensions
Extensions for IValidatable
Structs
AtomicFreeList<T>
A generic, multiple-reader, multiple-writer concurrent free list
AtomicNode
A node for use in an atomic collection
AtomicQueue<T>
A generic, multiple-reader, multiple-writer concurrent queue.
The queue uses a sentinel node to track each end of the queue.
When the queue is empty, the first and last nodes point to each other.
Elements are added to the queue between the last and next-to-last nodes, whose pointers are updated accordingly.
The element removed from the queue is always the next-to-first, and the pointers of the first and next-to-next-to-first elements are updated.
BatchAllocator
Non-concurrent batching allocator, backed by native allocations. The user will pass pointers to storage pointers in Allocate, and then actual allocation and storate population will occur in Dispose.
FIFO
FIFO.Indices
FIFO.Indices.Range
GrowableBuffer<T>
A List<T>-like blittable data structure backed by native allocations
OwnedAtomicQueue<T>
A generic, multiple-reader, multiple-writer concurrent queue. The queue uses a sentinel node to track each end of the queue. When the queue is empty, the first and last nodes point to each other. Elements are added to the queue between the last and next-to-last nodes, whose pointers are updated accordingly. The element removed from the queue is always the next-to-first, and the pointers of the first and next-to-next-to-first elements are updated.
PagedFreeList<T>
A growable, sparse list whose internal memory is never relocated once allocated
Interfaces
IValidatable
An interface for providing validation
Enums
AllocationMode
The allocation mode to be used with an AtomicFreeList<T>
BufferWriteMode
Modes for writing samples to a buffer