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