Пример #1
0
 public byte[] ProtoSerialize(OriginalN N)
 {
     using (var ms = new MemoryStream())
     {
         Serializer.Serialize(ms, N.ValueArray);
         return(ms.ToArray());
     }
 }
Пример #2
0
 public byte[] MspackContractlessSerialize(OriginalN N)
 {
     return(MessagePackSerializer.Serialize(N.ValueArray, LabOptions.mcpContractlessOptions));
 }
Пример #3
0
 public byte[] MspackSerialize(OriginalN N)
 {
     return(MessagePackSerializer.Serialize(N.ValueArray));
 }
Пример #4
0
 public string SwifterJsonSerialize(OriginalN N)
 {
     return(JsonFormatter.SerializeObject(N.ValueArray));
 }
Пример #5
0
 public string NewtonJsonSerialize(OriginalN N)
 {
     return(JsonConvert.SerializeObject(N.ValueArray));
 }
Пример #6
0
 public byte[] LZ4MspackSerialize(OriginalN N)
 {
     return(MessagePackSerializer.Serialize(N.ValueArray, LabOptions.lz4Options));
 }