C# Class ESRI.ArcGIS.Client.Toolkit.DataSources.Kml.Zip.CountingStream

A Stream wrapper, used for bookkeeping on input or output streams. In some cases, it is not possible to get the Position of a stream, let's say, on a write-only output stream like ASP.NET's Response.Output, or on a different write-only stream provided as the destination for the zip by the application. In this case, we can use this counting stream to count the bytes read or written.
Inheritance: System.IO.Stream
Afficher le fichier Open project: Esri/arcgis-toolkit-sl-wpf

Méthodes publiques

Méthode Description
Adjust ( System.Int64 delta ) : void
CountingStream ( System s ) : System

The constructor.

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

Method Details

Adjust() public méthode

public Adjust ( System.Int64 delta ) : void
delta System.Int64
Résultat void

CountingStream() public méthode

The constructor.
public CountingStream ( System s ) : System
s System The underlying stream
Résultat System

Flush() public méthode

public Flush ( ) : void
Résultat void

Read() public méthode

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

Seek() public méthode

public Seek ( long offset, System origin ) : long
offset long
origin System
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