Share via


IJsonRpcMessageTextFormatter.Deserialize Method

Definition

Deserializes a sequence of bytes to a JsonRpcMessage.

public StreamJsonRpc.Protocol.JsonRpcMessage Deserialize (System.Buffers.ReadOnlySequence<byte> contentBuffer, System.Text.Encoding encoding);
abstract member Deserialize : System.Buffers.ReadOnlySequence<byte> * System.Text.Encoding -> StreamJsonRpc.Protocol.JsonRpcMessage
Public Function Deserialize (contentBuffer As ReadOnlySequence(Of Byte), encoding As Encoding) As JsonRpcMessage

Parameters

contentBuffer
ReadOnlySequence<Byte>

The bytes to deserialize.

encoding
Encoding

The encoding to read the bytes in contentBuffer with. Must not be null.

Returns

The deserialized message.

Applies to