SplitStreamContainer

SplitStreamContainer class

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

public class SplitStreamContainer : StreamContainer

Constructors

Name Description
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

Name Description
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

Name Description
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