Initializes a new instance of the HeaderedStream class.

Namespace: FirstFloor.Documents.IO
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.1.0)

Syntax

C#
public HeaderedStream(
	Stream source,
	byte[] header,
	bool overwrite
)
Visual Basic
Public Sub New ( _
	source As Stream, _
	header As Byte(), _
	overwrite As Boolean _
)
Visual C++
public:
HeaderedStream(
	Stream^ source, 
	array<unsigned char>^ header, 
	bool overwrite
)

Parameters

source
Type: System.IO..::..Stream
The source.
header
Type: array<System..::..Byte>[]()[][]
The header.
overwrite
Type: System..::..Boolean
if set to true the header overwrites the underlying stream; otherwise the header is prepended to the source.

See Also