Interface ISerializer<TEntry>
Generic Serializer interface for any type.
Namespace: Tenray.ZoneTree.Serializers
Assembly: ZoneTree.dll
Syntax
public interface ISerializer<TEntry>
Type Parameters
Name | Description |
---|---|
TEntry |
Methods
| Improve this Doc View SourceDeserialize(Memory<byte>)
Deserialize the bytes into entry type.
Declaration
TEntry Deserialize(Memory<byte> bytes)
Parameters
Type | Name | Description |
---|---|---|
Memory<byte> | bytes | The bytes to be deserialized. |
Returns
Type | Description |
---|---|
TEntry | The deserialized entry. |
Serialize(in TEntry)
Serialize the entry into byte array.
Declaration
Memory<byte> Serialize(in TEntry entry)
Parameters
Type | Name | Description |
---|---|---|
TEntry | entry | The entry |
Returns
Type | Description |
---|---|
Memory<byte> | The serialized bytes. |