Class DeletableRefSerializer<TValue>
Implements
ISerializer<Deletable<TValue>>
Inherited Members
Namespace: Tenray.ZoneTree.Serializers
Assembly: ZoneTree.dll
Syntax
public sealed class DeletableRefSerializer<TValue> : ISerializer<Deletable<TValue>>
Type Parameters
| Name | Description |
|---|---|
| TValue |
Constructors
| Improve this Doc View SourceDeletableRefSerializer(ISerializer<TValue>)
Declaration
public DeletableRefSerializer(ISerializer<TValue> valueSerializer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISerializer<TValue> | valueSerializer |
Methods
| Improve this Doc View SourceDeserialize(Memory<byte>)
Deserialize the bytes into entry type.
Declaration
public Deletable<TValue> Deserialize(Memory<byte> bytes)
Parameters
| Type | Name | Description |
|---|---|---|
| Memory<byte> | bytes | The bytes to be deserialized. |
Returns
| Type | Description |
|---|---|
| Deletable<TValue> | The deserialized entry. |
Serialize(in Deletable<TValue>)
Serialize the entry into byte array.
Declaration
public Memory<byte> Serialize(in Deletable<TValue> entry)
Parameters
| Type | Name | Description |
|---|---|---|
| Deletable<TValue> | entry | The entry |
Returns
| Type | Description |
|---|---|
| Memory<byte> | The serialized bytes. |