Доработки и внедрение cbor сериализации

This commit is contained in:
2025-02-27 00:12:52 +03:00
parent b4ccfdd51c
commit 46732da780
12 changed files with 213 additions and 64 deletions
+9 -9
View File
@@ -3,15 +3,15 @@ using mROA.Abstract;
namespace mROA.Cbor
{
public interface IContextualSerializationToolKit
public interface IContextualSerializationToolKit : ISerializationToolkit
{
byte[] Serialize(object objectToSerialize, IEndPointContext context);
void Serialize(object objectToSerialize, Span<byte> destination, IEndPointContext context);
T Deserialize<T>(byte[] rawData, IEndPointContext context);
object Deserialize(byte[] rawData, Type type, IEndPointContext context);
T Deserialize<T>(ReadOnlyMemory<byte> rawData, IEndPointContext context);
object Deserialize(ReadOnlyMemory<byte> rawData, Type type, IEndPointContext context);
T Cast<T>(object nonCasted, IEndPointContext context);
object Cast(object nonCasted, Type type, IEndPointContext context);
byte[] Serialize(object objectToSerialize, IEndPointContext? context);
void Serialize(object objectToSerialize, Span<byte> destination, IEndPointContext? context);
T Deserialize<T>(byte[] rawData, IEndPointContext? context);
object? Deserialize(byte[] rawData, Type type, IEndPointContext? context);
T Deserialize<T>(ReadOnlyMemory<byte> rawMemory, IEndPointContext? context);
object? Deserialize(ReadOnlyMemory<byte> rawMemory, Type type, IEndPointContext? context);
T Cast<T>(object nonCasted, IEndPointContext? context);
object? Cast(object nonCasted, Type type, IEndPointContext? context);
}
}