C# Class RampUp.Buffers.ReadonlySegmentStream

The readonly version of SegmentStream, being reusable by filling the instance by calling Fill
Inheritance: Stream
Datei anzeigen Open project: Scooletz/RampUp

Protected Properties

Property Type Description
Calculator IndexCalculator
Head Segment*
_length int
_position int

Public Methods

Method Description
Fill ( Payload &payload ) : void
Flush ( ) : void
Read ( ByteChunk chunk ) : int
Read ( byte buffer, int offset, int count ) : int
ReadByte ( ) : int
ReadonlySegmentStream ( ) : System

Initializes empty ReadonlySegmentStream, which should be filled with data.

Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Protected Methods

Method Description
FindSegment ( int index ) : Segment*
GetTailOrThis ( Segment segment ) : Segment*
ReadonlySegmentStream ( IndexCalculator calculator ) : System

Private Methods

Method Description
ReadImpl ( ByteSlice &slice ) : int

Method Details

Fill() public method

public Fill ( Payload &payload ) : void
payload Payload
return void

FindSegment() protected method

protected FindSegment ( int index ) : Segment*
index int
return Segment*

Flush() public method

public Flush ( ) : void
return void

GetTailOrThis() protected static method

protected static GetTailOrThis ( Segment segment ) : Segment*
segment Segment
return Segment*

Read() public method

public Read ( ByteChunk chunk ) : int
chunk ByteChunk
return int

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

ReadByte() public method

public ReadByte ( ) : int
return int

ReadonlySegmentStream() public method

Initializes empty ReadonlySegmentStream, which should be filled with data.
public ReadonlySegmentStream ( ) : System
return System

ReadonlySegmentStream() protected method

protected ReadonlySegmentStream ( IndexCalculator calculator ) : System
calculator IndexCalculator
return System

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

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

Write() public method

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

Property Details

Calculator protected_oe property

protected IndexCalculator,RampUp.Buffers Calculator
return IndexCalculator

Head protected_oe property

protected Segment* Head
return Segment*

_length protected_oe property

protected int _length
return int

_position protected_oe property

protected int _position
return int