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