C# Class RampUp.Buffers.SingleThreadSegmentPool

Inheritance: ISegmentPool
Datei anzeigen Open project: Scooletz/RampUp Class Usage Examples

Public Methods

Method Description
CountSegments ( ) : int
Dispose ( ) : void
Push ( Segment segment ) : void
SingleThreadSegmentPool ( int segmentCount ) : System
TryPop ( Segment &result ) : bool
TryPop ( int numberOfSegmentsToRetrieve, Segment &startingSegment ) : int

Method Details

CountSegments() public method

public CountSegments ( ) : int
return int

Dispose() public method

public Dispose ( ) : void
return void

Push() public method

public Push ( Segment segment ) : void
segment Segment
return void

SingleThreadSegmentPool() public method

public SingleThreadSegmentPool ( int segmentCount ) : System
segmentCount int
return System

TryPop() public method

public TryPop ( Segment &result ) : bool
result Segment
return bool

TryPop() public method

public TryPop ( int numberOfSegmentsToRetrieve, Segment &startingSegment ) : int
numberOfSegmentsToRetrieve int
startingSegment Segment
return int