C# Класс RampUp.Buffers.SegmentStream

A stream based on ISegmentPool using its segments as chunks to build up the stream.
Наследование: ReadonlySegmentStream
Показать файл Открыть проект

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

Метод Описание
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

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

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
AddSegments ( int segmentsToObtain ) : Segment*

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

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

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

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

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

public SetLength ( long value ) : void
value long
Результат void

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

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.
Результат void

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

public Write ( ByteChunk chunk ) : void
chunk ByteChunk
Результат void

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

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Результат void

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

public WriteByte ( byte value ) : void
value byte
Результат void