Skip to main content
Version: 14 Oct 2024

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

TypeNameDescription
longsize
Allocatorallocator

void Reset

public void Reset()

void ResetUnchecked

public void ResetUnchecked()

UnsafeRingBuffer

public UnsafeRingBuffer(
long size,
Allocator allocator
)

Parameters

TypeNameDescription
longsize
Allocatorallocator

Public Attributes

Allocator


public Allocator Allocator => IsCreated ? _Data->Allocator : Allocator.Invalid;


IsCreated


public bool IsCreated => _Data != null;