Méthode | Description | |
---|---|---|
Adjust ( System.Int64 delta ) : void |
Adjust the byte count on the stream. Subtract delta from the count of bytes written to the stream. This is necessary when seeking back, and writing additional data, as happens in some cases when saving Zip files. |
|
CountingStream ( System stream ) : System |
The constructor.
|
|
Flush ( ) : void |
Flushes the underlying stream.
|
|
Read ( byte buffer, int offset, int count ) : int |
The read method.
|
|
Seek ( long offset, System origin ) : long |
Seek in the stream.
|
|
SetLength ( long value ) : void |
Set the length of the underlying stream. Be careful with this!
|
|
Write ( byte buffer, int offset, int count ) : void |
Write data into the stream.
|
public Adjust ( System.Int64 delta ) : void | ||
delta | System.Int64 | /// the number of bytes to subtract from the count. /// |
Résultat | void |
public CountingStream ( System stream ) : System | ||
stream | System | The underlying stream |
Résultat | System |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | The buffer to hold the data read from the stream. |
offset | int | the offset within the buffer to copy the first byte read. |
count | int | the number of bytes to read. |
Résultat | int |
public Seek ( long offset, System origin ) : long | ||
offset | long | the offset point to seek to |
origin | System | the reference point from which to seek |
Résultat | long |
public SetLength ( long value ) : void | ||
value | long | the length to set on the underlying stream. |
Résultat | void |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | The buffer holding data to write to the stream. |
offset | int | the offset within that data array to find the first byte to write. |
count | int | the number of bytes to write. |
Résultat | void |