C# Класс Helios.Buffers.AbstractReferenceCountedByteBuf

An abstract IByteBuf implementation that uses reference counting to protect the underlying data from being overwritten in scenarios where buffers are re-used, sliced, or otherwise shared.
Наследование: Helios.Buffers.AbstractByteBuf
Показать файл Открыть проект

Открытые методы

Метод Описание
Release ( ) : bool
Release ( int decrement ) : bool
Retain ( ) : IReferenceCounted
Retain ( int increment ) : IReferenceCounted
Touch ( ) : IReferenceCounted
Touch ( object hint ) : IReferenceCounted

Защищенные методы

Метод Описание
AbstractReferenceCountedByteBuf ( int maxCapacity ) : System.Diagnostics.Contracts
Deallocate ( ) : void

Called once ReferenceCount is equal to 0.

SetReferenceCount ( int refCount ) : void

An unsafe operation designed to be used by a subclass that sets the reference count of the buffer directly

Описание методов

AbstractReferenceCountedByteBuf() защищенный Метод

protected AbstractReferenceCountedByteBuf ( int maxCapacity ) : System.Diagnostics.Contracts
maxCapacity int
Результат System.Diagnostics.Contracts

Deallocate() защищенный абстрактный Метод

Called once ReferenceCount is equal to 0.
protected abstract Deallocate ( ) : void
Результат void

Release() публичный Метод

public Release ( ) : bool
Результат bool

Release() публичный Метод

public Release ( int decrement ) : bool
decrement int
Результат bool

Retain() публичный Метод

public Retain ( ) : IReferenceCounted
Результат IReferenceCounted

Retain() публичный Метод

public Retain ( int increment ) : IReferenceCounted
increment int
Результат IReferenceCounted

SetReferenceCount() защищенный Метод

An unsafe operation designed to be used by a subclass that sets the reference count of the buffer directly
protected SetReferenceCount ( int refCount ) : void
refCount int The new value to use.
Результат void

Touch() публичный Метод

public Touch ( ) : IReferenceCounted
Результат IReferenceCounted

Touch() публичный Метод

public Touch ( object hint ) : IReferenceCounted
hint object
Результат IReferenceCounted