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
Mostrar archivo Open project: Esri/arcgis-toolkit-sl-wpf

Public Methods

Method 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 method

public Adjust ( System.Int64 delta ) : void
delta System.Int64
return void

CountingStream() public method

The constructor.
public CountingStream ( System s ) : System
s System The underlying stream
return System

Flush() public method

public Flush ( ) : void
return void

Read() public method

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

Seek() public method

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