UnsafeRingBuffer
NameSpace: Unsafe
Inherits from:
IDisposable
Public Methods
BlockingReader AsBlockingReader
public BlockingReader AsBlockingReader()
BlockingReader AsBlockingReaderUnchecked
public BlockingReader AsBlockingReaderUnchecked()
BlockingWriter AsBlockingWriter
public BlockingWriter AsBlockingWriter()
BlockingWriter AsBlockingWriterUnchecked
public BlockingWriter AsBlockingWriterUnchecked()
NonblockingReader AsNonblockingReader
public NonblockingReader AsNonblockingReader()
NonblockingReader AsNonblockingReaderUnchecked
public NonblockingReader AsNonblockingReaderUnchecked()
NonblockingWriter AsNonblockingWriter
public NonblockingWriter AsNonblockingWriter()
NonblockingWriter AsNonblockingWriterUnchecked
public NonblockingWriter AsNonblockingWriterUnchecked()
void Dispose
public void Dispose()
void Initialize
public void Initialize(
long size,
Allocator allocator
)
Parameters
Type | Name | Description |
---|---|---|
long | size | |
Allocator | allocator |
void Reset
public void Reset()
void ResetUnchecked
public void ResetUnchecked()
UnsafeRingBuffer
public UnsafeRingBuffer(
long size,
Allocator allocator
)
Parameters
Type | Name | Description |
---|---|---|
long | size | |
Allocator | allocator |
Public Attributes
Allocator
public Allocator Allocator => IsCreated ? _Data->Allocator : Allocator.Invalid;
IsCreated
public bool IsCreated => _Data != null;