次の方法で共有


MessagePackFragment 構造体

定義

MessagePack を使用してシリアル化されたバイトシーケンス。

[MessagePack.MessagePackFormatter(typeof(Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment+MessagePackFragmentFormatter))]
[Newtonsoft.Json.JsonConverter(typeof(Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment+MessagePackFragmentConverter))]
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct MessagePackFragment
[<MessagePack.MessagePackFormatter(typeof(Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment+MessagePackFragmentFormatter))>]
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.VisualStudio.RpcContracts.RemoteUI.MessagePackFragment+MessagePackFragmentConverter))>]
[<System.Runtime.CompilerServices.IsReadOnly>]
type MessagePackFragment = struct
Public Structure MessagePackFragment
継承
MessagePackFragment
属性
MessagePack.MessagePackFormatterAttribute Newtonsoft.Json.JsonConverterAttribute IsReadOnlyAttribute

注釈

MessagePackFragmentがより大きな MessagePack ペイロードの一部としてシリアル化されると、長さのプレフィックスが付いた生データとして書き込まれます。 これにより、より大きなペイロードを json としてログに記録し、フラグメントの内容を読み取り可能な形式で示すことができます。 逆シリアル化時にフラグメントはそのまま取得されるため、フラグメントを含むペイロードとは別に逆シリアル化できます(後で可能)。

コンストラクター

MessagePackFragment(ReadOnlySequence<Byte>)

MessagePackFragment 構造体の新しいインスタンスを初期化します。

プロパティ

Data

MessagePack 形式のバイト シーケンスを取得します。

Length

フラグメントの長さをバイト単位で取得します。

適用対象