Class CompactPubKeyNullableFormatter
- Namespace
- NLightning.Transport.Ipc.MessagePack.Formatters
- Assembly
- NLightning.Transport.Ipc.dll
[ExcludeFormatterFromSourceGeneratedResolver]
public class CompactPubKeyNullableFormatter : IMessagePackFormatter<CompactPubKey?>
- Inheritance
-
CompactPubKeyNullableFormatter
- Implements
-
IMessagePackFormatter<CompactPubKey?>
- Inherited Members
Methods
Deserialize(ref MessagePackReader, MessagePackSerializerOptions)
Deserializes a value.
public CompactPubKey? Deserialize(ref MessagePackReader reader, MessagePackSerializerOptions options)
Parameters
readerMessagePackReaderThe reader to deserialize from.
optionsMessagePackSerializerOptionsThe serialization settings to use, including the resolver to use to obtain formatters for types that make up the composite type CompactPubKey?.
Returns
- CompactPubKey?
The deserialized value.
Serialize(ref MessagePackWriter, CompactPubKey?, MessagePackSerializerOptions)
Serializes a value.
public void Serialize(ref MessagePackWriter writer, CompactPubKey? value, MessagePackSerializerOptions options)
Parameters
writerMessagePackWriterThe writer to use when serializing the value.
valueCompactPubKey?The value to be serialized.
optionsMessagePackSerializerOptionsThe serialization settings to use, including the resolver to use to obtain formatters for types that make up the composite type CompactPubKey?.