Пример #1
0
 public byte[] SerializeToByteArray(object obj)
 {
     return(ProtobufHelper.ToBytes(obj));
 }
Пример #2
0
 public T DeserializeFrom <T>(byte[] bytes, int index, int count)
 {
     return(ProtobufHelper.FromBytes <T>(bytes, index, count));
 }
Пример #3
0
 public T DeserializeFrom <T>(byte[] bytes)
 {
     return(ProtobufHelper.FromBytes <T>(bytes));
 }
Пример #4
0
 public object DeserializeFrom(Type type, byte[] bytes, int index, int count)
 {
     return(ProtobufHelper.FromBytes(type, bytes, index, count));
 }
Пример #5
0
 public object DeserializeFrom(Type type, Stream stream)
 {
     return(ProtobufHelper.FromStream(type, stream));
 }
Пример #6
0
 public object DeserializeFrom(Type type, byte[] bytes)
 {
     return(ProtobufHelper.FromBytes(type, bytes));
 }