Class ConcatStream
Allow to concat two streams together. When the first stream fully read it will continue to read from the second stream.
Inheritance
System.Object
ConcatStream
Assembly: Eco.Core.dll
Syntax
public class ConcatStream : ReadOnlyStream
Constructors
ConcatStream(Stream, Stream, Boolean)
Declaration
public ConcatStream(Stream firstStream, Stream secondStream, bool leaveOpen = false)
Parameters
Type |
Name |
Description |
System.IO.Stream |
firstStream |
|
System.IO.Stream |
secondStream |
|
System.Boolean |
leaveOpen |
|
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Read(Byte[], Int32, Int32)
Declaration
public override int Read(byte[] buffer, int offset, int count)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
|
System.Int32 |
offset |
|
System.Int32 |
count |
|
Returns
Type |
Description |
System.Int32 |
|
ReadByte()
Declaration
public override int ReadByte()
Returns
Type |
Description |
System.Int32 |
|
Extension Methods