PackerCreate Method (Stream, PackerCompatibilityOptions, Boolean) |
Namespace: MsgPackAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax public static Packer Create(
Stream stream,
PackerCompatibilityOptions compatibilityOptions,
bool ownsStream
)
Public Shared Function Create (
stream As Stream,
compatibilityOptions As PackerCompatibilityOptions,
ownsStream As Boolean
) As Packer
public:
static Packer^ Create(
Stream^ stream,
PackerCompatibilityOptions compatibilityOptions,
bool ownsStream
)
static member Create :
stream : Stream *
compatibilityOptions : PackerCompatibilityOptions *
ownsStream : bool -> Packer
Parameters
- stream
- Type: System.IOStream
Stream object. - compatibilityOptions
- Type: MsgPackPackerCompatibilityOptions
A PackerCompatibilityOptions which specifies compatibility options. - ownsStream
- Type: SystemBoolean
true to close stream when this instance is disposed;
false, otherwise.
Return Value
Type:
PackerSafe
Packer. This will not be null.
Exceptions Remarks
You can specify any derived
Stream class like FileStream,
MemoryStream,
NetworkStream, UnmanagedMemoryStream, or so.
See Also