Запись Cbor

This commit is contained in:
2025-02-24 12:48:31 +03:00
parent 79aaad9226
commit 14c74c5775
7 changed files with 199 additions and 4 deletions
@@ -0,0 +1,17 @@
using System;
using mROA.Abstract;
namespace mROA.Cbor
{
public interface IContextualSerializationToolKit
{
byte[] Serialize<T>(T objectToSerialize, IEndPointContext context);
byte[] Serialize(object objectToSerialize, Type type, IEndPointContext context);
T Deserialize<T>(byte[] rawData, IEndPointContext context);
object? Deserialize(byte[] rawData, Type type, IEndPointContext context);
T Deserialize<T>(Span<byte> rawData, IEndPointContext context);
object? Deserialize(Span<byte> rawData, Type type, IEndPointContext context);
T Cast<T>(object nonCasted, IEndPointContext context);
object Cast(object nonCasted, Type type, IEndPointContext context);
}
}