Пример #1
0
 public byte[] SerializeTo(object obj)
 {
     return(ProtobufHelper.ToBytes(obj));
 }
Пример #2
0
 public object DeserializeFrom(object instance, MemoryStream stream)
 {
     return(ProtobufHelper.FromStream(instance, stream));
 }
Пример #3
0
 public object DeserializeFrom(Type type, MemoryStream stream)
 {
     return(ProtobufHelper.FromStream(type, stream));
 }
Пример #4
0
 public object DeserializeFrom(object instance, byte[] bytes, int index, int count)
 {
     return(ProtobufHelper.FromBytes(instance, bytes, index, count));
 }
Пример #5
0
 public object DeserializeFrom(Type type, byte[] bytes, int index, int count)
 {
     return(ProtobufHelper.FromBytes(type, bytes, index, count));
 }
Пример #6
0
 public void SerializeTo(object obj, MemoryStream stream)
 {
     ProtobufHelper.ToStream(obj, stream);
 }