blob: a03127ae66c6c7975309ca8511e3cfe83bad1a90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright (c) All contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Benchmark.Serializers;
#pragma warning disable SA1649 // File name should match first type name
public class MsgPackCli : SerializerBase
{
public override T Deserialize<T>(object input)
{
return MsgPack.Serialization.MessagePackSerializer.Get<T>().UnpackSingleObject((byte[])input);
}
public override object Serialize<T>(T input)
{
return MsgPack.Serialization.MessagePackSerializer.Get<T>().PackSingleObject(input);
}
}
|