C# Class RampUp.Buffers.ReadonlySegmentStream

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

Protected Properties

Свойство Type Description
Calculator IndexCalculator
Head Segment*
_length int
_position int

Méthodes publiques

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

Méthodes protégées

Méthode Description
FindSegment ( int index ) : Segment*
GetTailOrThis ( Segment segment ) : Segment*
ReadonlySegmentStream ( IndexCalculator calculator ) : System

Private Methods

Méthode Description
ReadImpl ( ByteSlice &slice ) : int

Method Details

Fill() public méthode

public Fill ( Payload &payload ) : void
payload Payload
Résultat void

FindSegment() protected méthode

protected FindSegment ( int index ) : Segment*
index int
Résultat Segment*

Flush() public méthode

public Flush ( ) : void
Résultat void

GetTailOrThis() protected static méthode

protected static GetTailOrThis ( Segment segment ) : Segment*
segment Segment
Résultat Segment*

Read() public méthode

public Read ( ByteChunk chunk ) : int
chunk ByteChunk
Résultat int

Read() public méthode

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

ReadByte() public méthode

public ReadByte ( ) : int
Résultat int

ReadonlySegmentStream() public méthode

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

ReadonlySegmentStream() protected méthode

protected ReadonlySegmentStream ( IndexCalculator calculator ) : System
calculator IndexCalculator
Résultat System

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
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

Property Details

Calculator protected_oe property

protected IndexCalculator,RampUp.Buffers Calculator
Résultat IndexCalculator

Head protected_oe property

protected Segment* Head
Résultat Segment*

_length protected_oe property

protected int _length
Résultat int

_position protected_oe property

protected int _position
Résultat int