C# Class RampUp.Buffers.SegmentStream

A stream based on ISegmentPool using its segments as chunks to build up the stream.
Inheritance: ReadonlySegmentStream
Datei anzeigen Open project: Scooletz/RampUp

Public Methods

Method Description
SetLength ( long value ) : void
WrapInContext ( Payload &ctx ) : void

Wraps the whole content from this instance in a context object. This effectively means that no segments are returned to the pool but rather are passes by ref in the context.

Write ( ByteChunk chunk ) : void
Write ( byte buffer, int offset, int count ) : void
WriteByte ( byte value ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
AddSegments ( int segmentsToObtain ) : Segment*

Adds segments, returning the initial segment of the newly added chain.

SegmentStream ( ISegmentPool pool ) : System
WriteImpl ( ByteSlice &slice ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

SetLength() public method

public SetLength ( long value ) : void
value long
return void

WrapInContext() public method

Wraps the whole content from this instance in a context object. This effectively means that no segments are returned to the pool but rather are passes by ref in the context.
public WrapInContext ( Payload &ctx ) : void
ctx Payload The context to be returned.
return void

Write() public method

public Write ( ByteChunk chunk ) : void
chunk ByteChunk
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

WriteByte() public method

public WriteByte ( byte value ) : void
value byte
return void