This function reads a stream from the virtual cluster and returns a stream object. The stream
will be read fromthe specified offset for the given length.
Namespace: VcClient.TestAssembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)
Syntax
C# |
---|
public Stream ReadStream(
string sourceStream,
long offset,
long length,
bool compression
) |
Visual Basic |
---|
Public Function ReadStream ( _
sourceStream As String, _
offset As Long, _
length As Long, _
compression As Boolean _
) As Stream |
Visual C++ |
---|
public:
Stream^ ReadStream(
String^ sourceStream,
long long offset,
long long length,
bool compression
) |
Parameters
- sourceStream
- Type: String
complete path of the stream in vc:// or http:// format.
- offset
- Type: Int64
The position in the stream from which the stream should be read.
- length
- Type: Int64
The number of bits to be read.
- compression
- Type: Boolean
Whether compression should be used while transfering data from
the VC.
Return Value
A stream object representing the stream being read from the VC.
Exceptions
Exception | Condition |
---|
ArgumentNullException | sourceStream is null. |
ArgumentException | sourceStream is empty or contains
whitespace only. |
See Also