| Packer Class |
Namespace: MsgPack
The Packer type exposes the following members.
| Name | Description | |
|---|---|---|
| Packer |
Initializes a new instance of the Packer class with DefaultCompatibilityOptions.
| |
| Packer(PackerCompatibilityOptions) |
Initializes a new instance of the Packer class with specified PackerCompatibilityOptions.
|
| Name | Description | |
|---|---|---|
| CanSeek |
Get whether this class supports seek operation and quering Position property.
| |
| CompatibilityOptions |
Gets a compatibility options for this instance.
| |
| DefaultCompatibilityOptions |
Gets or sets the default PackerCompatibilityOptions for all instances.
| |
| Position |
Get current position of underlying stream.
|
| Name | Description | |
|---|---|---|
| Create(Stream) | ||
| Create(Stream, PackerCompatibilityOptions) |
Create standard Safe Packer instancde wrapping specified Stream with specified PackerCompatibilityOptions.
| |
| Create(Stream, Boolean) | ||
| Create(Stream, PackerCompatibilityOptions, Boolean) |
Create standard Safe Packer instancde wrapping specified Stream with specified PackerCompatibilityOptions.
| |
| Dispose |
Clean up internal resources.
| |
| Dispose(Boolean) |
When overridden by derived class, release all unmanaged resources, optionally release managed resources.
| |
| Pack(Boolean) |
Packs Boolean value to current stream.
| |
| Pack(Byte) |
Packs Byte value to current stream.
| |
| Pack(Double) |
Packs Double value to current stream.
| |
| Pack(Int16) |
Packs Int16 value to current stream.
| |
| Pack(Int32) |
Packs Int32 value to current stream.
| |
| Pack(Int64) |
Packs Int64 value to current stream.
| |
| Pack(NullableBoolean) |
Pack nullable Boolean value.
| |
| Pack(NullableByte) |
Pack nullable Byte value.
| |
| Pack(NullableDouble) |
Pack nullable Double value.
| |
| Pack(NullableInt16) |
Pack nullable Int16 value.
| |
| Pack(NullableInt32) |
Pack nullable Int32 value.
| |
| Pack(NullableInt64) |
Pack nullable Int64 value.
| |
| Pack(NullableSByte) |
Pack nullable SByte value.
| |
| Pack(NullableSingle) |
Pack nullable Single value.
| |
| Pack(NullableUInt16) |
Pack nullable UInt16 value.
| |
| Pack(NullableUInt32) |
Pack nullable UInt32 value.
| |
| Pack(NullableUInt64) |
Pack nullable UInt64 value.
| |
| Pack(SByte) |
Packs SByte value to current stream.
| |
| Pack(Single) |
Packs Single value to current stream.
| |
| Pack(UInt16) |
Packs UInt16 value to current stream.
| |
| Pack(UInt32) |
Packs UInt32 value to current stream.
| |
| Pack(UInt64) |
Packs UInt64 value to current stream.
| |
| PackArrayHeader(Int32) |
Bookkeep array length to be packed on current stream.
| |
| PackArrayHeaderTItem(IListTItem) |
Bookkeep collection count to be packed on current stream.
| |
| PackArrayHeaderCore |
Bookkeep array length to be packed on current stream.
| |
| PackBinary(Byte) |
Packs specified byte array to current stream.
| |
| PackBinary(IEnumerableByte) |
Packs specified byte stream to current stream.
| |
| PackBinary(IListByte) |
Packs specified byte stream to current stream.
| |
| PackBinaryHeader |
Bookkeep byte length to be packed on current stream as the bytes do not represent well formed encoded string.
| |
| PackBinaryHeaderCore |
Bookkeep byte length to be packed on current stream as the bytes do not represent well formed encoded string.
| |
| PackExtendedTypeValue(MessagePackExtendedTypeObject) |
Packs an extended type value.
| |
| PackExtendedTypeValue(Byte, Byte) |
Packs an extended type value.
| |
| PackMapHeader(Int32) |
Bookkeep dictionary items count to be packed on current stream.
| |
| PackMapHeaderTKey, TValue(IDictionaryTKey, TValue) |
Bookkeep dictionary count to be packed on current stream.
| |
| PackMapHeaderCore |
Bookkeep dictionary items count to be packed on current stream.
| |
| PackNull |
Packs a null value to current stream.
| |
| PackRaw(Byte) |
Packs specified byte array to current stream.
| |
| PackRaw(IEnumerableByte) |
Packs specified byte stream to current stream.
| |
| PackRaw(IListByte) |
Packs specified byte stream to current stream.
| |
| PackRawBody(Byte) |
Packs specified byte array to current stream without any header.
| |
| PackRawBody(IEnumerableByte) |
Packs specified byte sequence to current stream without any header.
| |
| PackRawHeader | Obsolete.
Bookkeep byte length to be packed on current stream.
| |
| PackRawHeaderCore | Obsolete.
Bookkeep byte length to be packed on current stream.
| |
| PackString(IEnumerableChar) |
Packs specified char stream to current stream with UTF-8 Encoding.
| |
| PackString(String) |
Packs specified string to current stream with UTF-8 Encoding.
| |
| PackString(IEnumerableChar, Encoding) |
Packs specified char stream to current stream with specified Encoding.
| |
| PackString(String, Encoding) |
Packs specified string to current stream with specified Encoding.
| |
| PackStringCore(IEnumerableChar, Encoding) |
Packs specified char stream to current stream with specified Encoding.
| |
| PackStringCore(String, Encoding) |
Packs specified string to current stream with specified Encoding.
| |
| PackStringHeader |
Bookkeep byte length to be packed on current stream as the bytes may represent well formed encoded string.
| |
| PackStringHeaderCore |
Bookkeep byte length to be packed on current stream as the bytes may represent well formed encoded string.
| |
| SeekTo |
When overridden by derived class, change current position to specified offset.
| |
| TryPackInt16 |
Try packs Int16 value to current stream strictly.
| |
| TryPackInt32 |
Try packs Int32 value to current stream strictly.
| |
| TryPackInt64 |
Try packs Int64 value to current stream strictly.
| |
| TryPackInt8 |
Try packs SByte value to current stream strictly.
| |
| TryPackTinySignedInteger |
Try packs SByte value to current stream as tiny fix num.
| |
| TryPackTinyUnsignedInteger |
Try packs Byte value to current stream as tiny fix num.
| |
| TryPackUInt16 |
Try packs UInt16 value to current stream strictly.
| |
| TryPackUInt32 |
Try packs UInt32 value to current stream strictly.
| |
| TryPackUInt64 |
Try packs UInt64 value to current stream strictly.
| |
| WriteByte |
When overridden by derived class, writes specified byte to stream using implementation specific manner.
| |
| WriteBytes(ICollectionByte) |
Writes specified bytes to stream using implementation specific most efficient manner.
| |
| WriteBytes(Byte, Boolean) |
Writes specified bytes to stream using implementation specific most efficient manner.
|
| Name | Description | |
|---|---|---|
| PackT(T) | Overloaded.
Packs specified value with the default context.
(Defined by PackerUnpackerExtensions.) | |
| PackT(IEnumerableT) | Overloaded.
Packs specified collection with the default context.
(Defined by PackerUnpackerExtensions.) | |
| PackT(T, SerializationContext) | Overloaded.
Packs specified value with the specified context.
(Defined by PackerUnpackerExtensions.) | |
| PackT(IEnumerableT, SerializationContext) | Overloaded.
Packs specified value with the specified context.
(Defined by PackerUnpackerExtensions.) | |
| PackArrayT(IEnumerableT) | Overloaded.
Packs specified collection with the default context.
(Defined by PackerUnpackerExtensions.) | |
| PackArrayT(IEnumerableT, SerializationContext) | Overloaded.
Packs specified collection with the specified context.
(Defined by PackerUnpackerExtensions.) | |
| PackCollectionT(IEnumerableT) | Overloaded.
Packs specified collection with the default context.
(Defined by PackerUnpackerExtensions.) | |
| PackCollectionT(IEnumerableT, SerializationContext) | Overloaded.
Packs specified collection with the specified context.
(Defined by PackerUnpackerExtensions.) | |
| PackDictionaryTKey, TValue(IDictionaryTKey, TValue) | Overloaded.
Packs specified dictionary with the default context.
(Defined by PackerUnpackerExtensions.) | |
| PackDictionaryTKey, TValue(IDictionaryTKey, TValue, SerializationContext) | Overloaded.
Packs specified dictionary with the specified context.
(Defined by PackerUnpackerExtensions.) | |
| PackMapTKey, TValue(IDictionaryTKey, TValue) | Overloaded.
Packs specified dictionary with the default context.
(Defined by PackerUnpackerExtensions.) | |
| PackMapTKey, TValue(IDictionaryTKey, TValue, SerializationContext) | Overloaded.
Packs specified dictionary with the specified context.
(Defined by PackerUnpackerExtensions.) | |
| PackObject(Object) | Overloaded.
Packs specified value with the default context.
(Defined by PackerUnpackerExtensions.) | |
| PackObject(Object, SerializationContext) | Overloaded.
Packs specified value with the specified context.
(Defined by PackerUnpackerExtensions.) |