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
파일 보기 프로젝트 열기: helios-io/helios

공개 메소드들

메소드 설명
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