C# Class RampUp.Buffers.SegmentStream

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode 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 méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

WrapInContext() public méthode

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.
Résultat void

Write() public méthode

public Write ( ByteChunk chunk ) : void
chunk ByteChunk
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void

WriteByte() public méthode

public WriteByte ( byte value ) : void
value byte
Résultat void