Click or drag to resize
PackerCreate Method (Stream, PackerCompatibilityOptions)
Create standard Safe Packer instancde wrapping specified Stream with specified PackerCompatibilityOptions.

Namespace: MsgPack
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public static Packer Create(
	Stream stream,
	PackerCompatibilityOptions compatibilityOptions
)

Parameters

stream
Type: System.IOStream
Stream object. This stream will be closed when Dispose(Boolean) is called.
compatibilityOptions
Type: MsgPackPackerCompatibilityOptions
A PackerCompatibilityOptions which specifies compatibility options.

Return Value

Type: Packer
Safe Packer. This will not be null.
Exceptions
ExceptionCondition
ArgumentNullExceptionstream is null.
Remarks
You can specify any derived Stream class like FileStream, MemoryStream, NetworkStream, UnmanagedMemoryStream, or so.
See Also