Sdílet prostřednictvím


MessagePackFragment Struktura

Definice

Posloupnost bajtů serializovaných pomocí 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
Dědičnost
MessagePackFragment
Atributy
MessagePack.MessagePackFormatterAttribute Newtonsoft.Json.JsonConverterAttribute IsReadOnlyAttribute

Poznámky

MessagePackFragment Když je serializován jako součást větší datové části MessagePack, je zapsán jako nezpracovaná data s předponou podle jeho délky. To umožňuje, aby se větší datová část protokolovala jako json zobrazující obsah fragmentu v čitelné podobě. Při deserializaci se fragment načte tak, jak je možné jej deserializovat odděleně od datové části, která ho obsahuje, případně později.

Konstruktory

MessagePackFragment(ReadOnlySequence<Byte>)

Inicializuje novou instanci MessagePackFragment struktury.

Vlastnosti

Data

Získá posloupnost bajtů ve formátu MessagePack.

Length

Získá délku v bajtech fragmentu.

Platí pro