Return of ping pong and ToString for NetworkMessageHeader
This commit is contained in:
1 parent
e90829f7a1
commit
fa0565e699
7 files changed
+16
-6
No files matched your search
@@ -19,11 +19,11 @@ namespace mROA.Cbor
|
||||
return writer.Encode();
|
||||
}
|
||||
|
||||
public void Serialize(object objectToSerialize, Span<byte> destination, IEndPointContext context)
|
||||
public int Serialize(object objectToSerialize, Span<byte> destination, IEndPointContext context)
|
||||
{
|
||||
var writer = new CborWriter();
|
||||
WriteData(objectToSerialize, writer, context);
|
||||
writer.Encode(destination);
|
||||
return writer.Encode(destination);
|
||||
}
|
||||
|
||||
public T Deserialize<T>(byte[] rawData, IEndPointContext? context)
|
||||
|
||||
Reference in new issue
Block a user