다음을 통해 공유


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

조각의 길이(바이트)를 가져옵니다.

적용 대상