Class SplitStreamContainer

SplitStreamContainer class

Represents split stream container which contains the stream and provides stream processing routines.

public class SplitStreamContainer : StreamContainer

Constructors

NameDescription
SplitStreamContainer(Stream)Initializes a new instance of the SplitStreamContainer class.
SplitStreamContainer(Stream,Ā bool)Initializes a new instance of the SplitStreamContainer class.
SplitStreamContainer(StreamContainer,Ā bool)Initializes a new instance of the SplitStreamContainer class.

Properties

NameDescription
overrideĀ CanReadĀ {Ā get;Ā }Gets a value indicating whether stream supports reading.
overrideĀ CanSeekĀ {Ā get;Ā }Gets a value indicating whether stream supports seeking.
overrideĀ CanWriteĀ {Ā get;Ā }Gets a value indicating whether stream supports writing.
DisposedĀ {Ā get;Ā }Gets a value indicating whether this instance is disposed.
virtualĀ IsStreamDisposedOnCloseĀ {Ā get;Ā }Gets a value indicating whether this stream is disposed on close.
overrideĀ LengthĀ {Ā get;Ā set;Ā }Gets or sets the stream length in bytes. This value is less than the Length by the starting stream position passed in the StreamContainer constructor.
overrideĀ PositionĀ {Ā get;Ā set;Ā }Gets or sets the current position within the stream. This value represents offset from the starting stream position passed in the StreamContainer constructor.
overrideĀ StreamĀ {Ā get;Ā }Gets the data stream.
SyncRootĀ {Ā get;Ā }Gets an object that can be used to synchronize access to the synchronized resource.

Methods

NameDescription
Dispose()Disposes the current instance.
overrideĀ Flush()Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
Insert(int,Ā StreamContainer,Ā bool)Inserts the stream container into specified position.
overrideĀ Read(byte[])Reads bytes to fill the specified bytes buffer.
overrideĀ Read(byte[],Ā int,Ā int)Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
overrideĀ ReadByte()Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
virtualĀ Save(Stream)Saves (copies) the stream’s data to the specified stream. Uses default buffer size ReadWriteBytesCount and stream Length value.
virtualĀ Save(string)Saves (copies) the stream’s data to the specified stream. Uses default buffer size ReadWriteBytesCount and stream Length value.
virtualĀ Save(Stream,Ā int)Saves (copies) all the stream’s data to the specified stream. Uses stream Length value.
virtualĀ Save(string,Ā int)Saves (copies) the stream’s data to the specified stream. Uses stream Length value.
overrideĀ Save(Stream,Ā int,Ā long)Saves (copies) the stream’s data to the specified stream.
virtualĀ Save(string,Ā int,Ā long)Saves (copies) the stream’s data to the specified stream.
overrideĀ Seek(long,Ā SeekOrigin)Sets the position within the current stream.
overrideĀ SeekBegin()Sets the stream position to the beginning of the stream. This value represents offset from the starting stream position passed in the StreamContainer constructor.
overrideĀ ToBytes()Converts the stream data to the Byte array.
overrideĀ ToBytes(long,Ā long)Converts the stream data to the Byte array.
overrideĀ Write(byte[])Writes all of the specified bytes to the stream.
overrideĀ Write(byte[],Ā int,Ā int)Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
overrideĀ WriteByte(byte)Writes a byte to the current position in the stream and advances the position within the stream by one byte.
virtualĀ WriteTo(StreamContainer)Copies the contained data to another StreamContainer.
virtualĀ WriteTo(StreamContainer,Ā long)Copies the contained data to another StreamContainer.

See Also