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