Method | Description | |
---|---|---|
Copy ( Stream source, Stream destination, byte buffer ) : void |
Copy the contents of one Stream to another.
|
|
Copy ( Stream source, Stream destination, byte buffer, ProgressHandler progressHandler, System.TimeSpan updateInterval, object sender, string name ) : void |
Copy the contents of one Stream to another. This form is specialised for use within #Zip to support events during archive operations. |
|
Copy ( Stream source, Stream destination, byte buffer, ProgressHandler progressHandler, System.TimeSpan updateInterval, object sender, string name, long fixedTarget ) : void |
Copy the contents of one Stream to another. This form is specialised for use within #Zip to support events during archive operations. |
|
ReadFully ( Stream stream, byte buffer ) : void |
Read from a Stream ensuring all the required data is read.
|
|
ReadFully ( Stream stream, byte buffer, int offset, int count ) : void |
Read from a Stream" ensuring all the required data is read.
|
Method | Description | |
---|---|---|
StreamUtils ( ) : System |
Initialise an instance of
|
public static Copy ( Stream source, Stream destination, byte buffer ) : void | ||
source | Stream | The stream to source data from. |
destination | Stream | The stream to write data to. |
buffer | byte | The buffer to use during copying. |
return | void |
public static Copy ( Stream source, Stream destination, byte buffer, ProgressHandler progressHandler, System.TimeSpan updateInterval, object sender, string name ) : void | ||
source | Stream | The stream to source data from. |
destination | Stream | The stream to write data to. |
buffer | byte | The buffer to use during copying. |
progressHandler | ProgressHandler | The |
updateInterval | System.TimeSpan | The minimum |
sender | object | The source for this event. |
name | string | The name to use with the event. |
return | void |
public static Copy ( Stream source, Stream destination, byte buffer, ProgressHandler progressHandler, System.TimeSpan updateInterval, object sender, string name, long fixedTarget ) : void | ||
source | Stream | The stream to source data from. |
destination | Stream | The stream to write data to. |
buffer | byte | The buffer to use during copying. |
progressHandler | ProgressHandler | The |
updateInterval | System.TimeSpan | The minimum |
sender | object | The source for this event. |
name | string | The name to use with the event. |
fixedTarget | long | A predetermined fixed target value to use with progress updates. /// If the value is negative the target is calculated by looking at the stream. |
return | void |
public static ReadFully ( Stream stream, byte buffer ) : void | ||
stream | Stream | The stream to read. |
buffer | byte | The buffer to fill. |
return | void |
public static ReadFully ( Stream stream, byte buffer, int offset, int count ) : void | ||
stream | Stream | The stream to read data from. |
buffer | byte | The buffer to store data in. |
offset | int | The offset at which to begin storing data. |
count | int | The number of bytes of data to store. |
return | void |