コード例 #1
0
ファイル: ProtobufPacker.cs プロジェクト: x1766233/DCET
 public byte[] SerializeTo(object obj)
 {
     return(ProtobufHelper.ToBytes(obj));
 }
コード例 #2
0
ファイル: ProtobufPacker.cs プロジェクト: x1766233/DCET
 public object DeserializeFrom(object instance, MemoryStream stream)
 {
     return(ProtobufHelper.FromStream(instance, stream));
 }
コード例 #3
0
ファイル: ProtobufPacker.cs プロジェクト: x1766233/DCET
 public object DeserializeFrom(Type type, MemoryStream stream)
 {
     return(ProtobufHelper.FromStream(type, stream));
 }
コード例 #4
0
ファイル: ProtobufPacker.cs プロジェクト: x1766233/DCET
 public object DeserializeFrom(object instance, byte[] bytes, int index, int count)
 {
     return(ProtobufHelper.FromBytes(instance, bytes, index, count));
 }
コード例 #5
0
ファイル: ProtobufPacker.cs プロジェクト: x1766233/DCET
 public object DeserializeFrom(Type type, byte[] bytes, int index, int count)
 {
     return(ProtobufHelper.FromBytes(type, bytes, index, count));
 }
コード例 #6
0
ファイル: ProtobufPacker.cs プロジェクト: x1766233/DCET
 public void SerializeTo(object obj, MemoryStream stream)
 {
     ProtobufHelper.ToStream(obj, stream);
 }