Click or drag to resize
Packer Methods

The Packer type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreate(Stream)
Create standard Safe Packer instancde wrapping specified Stream with DefaultCompatibilityOptions.
Public methodStatic memberCreate(Stream, PackerCompatibilityOptions)
Create standard Safe Packer instancde wrapping specified Stream with specified PackerCompatibilityOptions.
Public methodStatic memberCreate(Stream, Boolean)
Create standard Safe Packer instancde wrapping specified Stream with DefaultCompatibilityOptions.
Public methodStatic memberCreate(Stream, PackerCompatibilityOptions, Boolean)
Create standard Safe Packer instancde wrapping specified Stream with specified PackerCompatibilityOptions.
Public methodDispose
Clean up internal resources.
Protected methodDispose(Boolean)
When overridden by derived class, release all unmanaged resources, optionally release managed resources.
Public methodPack(Boolean)
Packs Boolean value to current stream.
Public methodPack(Byte)
Packs Byte value to current stream.
Public methodPack(Double)
Packs Double value to current stream.
Public methodPack(Int16)
Packs Int16 value to current stream.
Public methodPack(Int32)
Packs Int32 value to current stream.
Public methodPack(Int64)
Packs Int64 value to current stream.
Public methodPack(NullableBoolean)
Pack nullable Boolean value.
Public methodPack(NullableByte)
Pack nullable Byte value.
Public methodPack(NullableDouble)
Pack nullable Double value.
Public methodPack(NullableInt16)
Pack nullable Int16 value.
Public methodPack(NullableInt32)
Pack nullable Int32 value.
Public methodPack(NullableInt64)
Pack nullable Int64 value.
Public methodPack(NullableSByte)
Pack nullable SByte value.
Public methodPack(NullableSingle)
Pack nullable Single value.
Public methodPack(NullableUInt16)
Pack nullable UInt16 value.
Public methodPack(NullableUInt32)
Pack nullable UInt32 value.
Public methodPack(NullableUInt64)
Pack nullable UInt64 value.
Public methodPack(SByte)
Packs SByte value to current stream.
Public methodPack(Single)
Packs Single value to current stream.
Public methodPack(UInt16)
Packs UInt16 value to current stream.
Public methodPack(UInt32)
Packs UInt32 value to current stream.
Public methodPack(UInt64)
Packs UInt64 value to current stream.
Public methodPackArrayHeader(Int32)
Bookkeep array length to be packed on current stream.
Public methodPackArrayHeaderTItem(IListTItem)
Bookkeep collection count to be packed on current stream.
Protected methodPackArrayHeaderCore
Bookkeep array length to be packed on current stream.
Public methodPackBinary(Byte)
Packs specified byte array to current stream.
Public methodPackBinary(IEnumerableByte)
Packs specified byte stream to current stream.
Public methodPackBinary(IListByte)
Packs specified byte stream to current stream.
Public methodPackBinaryHeader
Bookkeep byte length to be packed on current stream as the bytes do not represent well formed encoded string.
Protected methodPackBinaryHeaderCore
Bookkeep byte length to be packed on current stream as the bytes do not represent well formed encoded string.
Public methodPackExtendedTypeValue(MessagePackExtendedTypeObject)
Packs an extended type value.
Public methodPackExtendedTypeValue(Byte, Byte)
Packs an extended type value.
Public methodPackMapHeader(Int32)
Bookkeep dictionary items count to be packed on current stream.
Public methodPackMapHeaderTKey, TValue(IDictionaryTKey, TValue)
Bookkeep dictionary count to be packed on current stream.
Protected methodPackMapHeaderCore
Bookkeep dictionary items count to be packed on current stream.
Public methodPackNull
Packs a null value to current stream.
Public methodPackRaw(Byte)
Packs specified byte array to current stream.
Public methodPackRaw(IEnumerableByte)
Packs specified byte stream to current stream.
Public methodPackRaw(IListByte)
Packs specified byte stream to current stream.
Public methodPackRawBody(Byte)
Packs specified byte array to current stream without any header.
Public methodPackRawBody(IEnumerableByte)
Packs specified byte sequence to current stream without any header.
Public methodPackRawHeader Obsolete.
Bookkeep byte length to be packed on current stream.
Protected methodPackRawHeaderCore Obsolete.
Bookkeep byte length to be packed on current stream.
Public methodPackString(IEnumerableChar)
Packs specified char stream to current stream with UTF-8 Encoding.
Public methodPackString(String)
Packs specified string to current stream with UTF-8 Encoding.
Public methodPackString(IEnumerableChar, Encoding)
Packs specified char stream to current stream with specified Encoding.
Public methodPackString(String, Encoding)
Packs specified string to current stream with specified Encoding.
Protected methodPackStringCore(IEnumerableChar, Encoding)
Packs specified char stream to current stream with specified Encoding.
Protected methodPackStringCore(String, Encoding)
Packs specified string to current stream with specified Encoding.
Public methodPackStringHeader
Bookkeep byte length to be packed on current stream as the bytes may represent well formed encoded string.
Protected methodPackStringHeaderCore
Bookkeep byte length to be packed on current stream as the bytes may represent well formed encoded string.
Protected methodSeekTo
When overridden by derived class, change current position to specified offset.
Protected methodTryPackInt16
Try packs Int16 value to current stream strictly.
Protected methodTryPackInt32
Try packs Int32 value to current stream strictly.
Protected methodTryPackInt64
Try packs Int64 value to current stream strictly.
Protected methodTryPackInt8
Try packs SByte value to current stream strictly.
Protected methodTryPackTinySignedInteger
Try packs SByte value to current stream as tiny fix num.
Protected methodTryPackTinyUnsignedInteger
Try packs Byte value to current stream as tiny fix num.
Protected methodTryPackUInt16
Try packs UInt16 value to current stream strictly.
Protected methodTryPackUInt32
Try packs UInt32 value to current stream strictly.
Protected methodTryPackUInt64
Try packs UInt64 value to current stream strictly.
Protected methodWriteByte
When overridden by derived class, writes specified byte to stream using implementation specific manner.
Protected methodWriteBytes(ICollectionByte)
Writes specified bytes to stream using implementation specific most efficient manner.
Protected methodWriteBytes(Byte, Boolean)
Writes specified bytes to stream using implementation specific most efficient manner.
Top
Extension Methods
  NameDescription
Public Extension MethodPackT(T)Overloaded.
Packs specified value with the default context.
(Defined by PackerUnpackerExtensions.)
Public Extension MethodPackT(IEnumerableT)Overloaded.
Packs specified collection with the default context.
(Defined by PackerUnpackerExtensions.)
Public Extension MethodPackT(T, SerializationContext)Overloaded.
Packs specified value with the specified context.
(Defined by PackerUnpackerExtensions.)
Public Extension MethodPackT(IEnumerableT, SerializationContext)Overloaded.
Packs specified value with the specified context.
(Defined by PackerUnpackerExtensions.)
Public Extension MethodPackArrayT(IEnumerableT)Overloaded.
Packs specified collection with the default context.
(Defined by PackerUnpackerExtensions.)
Public Extension MethodPackArrayT(IEnumerableT, SerializationContext)Overloaded.
Packs specified collection with the specified context.
(Defined by PackerUnpackerExtensions.)
Public Extension MethodPackCollectionT(IEnumerableT)Overloaded.
Packs specified collection with the default context.
(Defined by PackerUnpackerExtensions.)
Public Extension MethodPackCollectionT(IEnumerableT, SerializationContext)Overloaded.
Packs specified collection with the specified context.
(Defined by PackerUnpackerExtensions.)
Public Extension MethodPackDictionaryTKey, TValue(IDictionaryTKey, TValue)Overloaded.
Packs specified dictionary with the default context.
(Defined by PackerUnpackerExtensions.)
Public Extension MethodPackDictionaryTKey, TValue(IDictionaryTKey, TValue, SerializationContext)Overloaded.
Packs specified dictionary with the specified context.
(Defined by PackerUnpackerExtensions.)
Public Extension MethodPackMapTKey, TValue(IDictionaryTKey, TValue)Overloaded.
Packs specified dictionary with the default context.
(Defined by PackerUnpackerExtensions.)
Public Extension MethodPackMapTKey, TValue(IDictionaryTKey, TValue, SerializationContext)Overloaded.
Packs specified dictionary with the specified context.
(Defined by PackerUnpackerExtensions.)
Public Extension MethodPackObject(Object)Overloaded.
Packs specified value with the default context.
(Defined by PackerUnpackerExtensions.)
Public Extension MethodPackObject(Object, SerializationContext)Overloaded.
Packs specified value with the specified context.
(Defined by PackerUnpackerExtensions.)
Top
See Also