Class DeletableSerializer<TValue>
Implements
ISerializer<Deletable<TValue>>
Inherited Members
Namespace: Tenray.ZoneTree.Serializers
Assembly: ZoneTree.dll
Syntax
public sealed class DeletableSerializer<TValue> : ISerializer<Deletable<TValue>> where TValue : unmanaged
Type Parameters
Name | Description |
---|---|
TValue |
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. |