共用方式為


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

取得片段的位元組長度。

適用於