示例#1
0
 public T DeserializeFrom <T>(byte[] bytes, int index, int count)
 {
     return(ProtobufHelper.FromBytes <T>(bytes, index, count));
 }
示例#2
0
 public byte[] SerializeToByteArray(object obj)
 {
     return(ProtobufHelper.ToBytes(obj));
 }
示例#3
0
 public object DeserializeFrom(Type type, byte[] bytes, int index, int count)
 {
     return(ProtobufHelper.FromBytes(type, bytes, index, count));
 }
示例#4
0
 public T DeserializeFrom <T>(byte[] bytes)
 {
     return(ProtobufHelper.FromBytes <T>(bytes));
 }
 public object DeserializeFrom(object instance, MemoryStream stream)
 {
     return(ProtobufHelper.FromStream(instance, stream));
 }
示例#6
0
 public object DeserializeFrom(Type type, byte[] bytes)
 {
     return(ProtobufHelper.FromBytes(type, bytes));
 }
 public object DeserializeFrom(Type type, MemoryStream stream)
 {
     return(ProtobufHelper.FromStream(type, stream));
 }
 public object DeserializeFrom(object instance, byte[] bytes, int index, int count)
 {
     return(ProtobufHelper.FromBytes(instance, bytes, index, count));
 }
 public void SerializeTo(object obj, MemoryStream stream)
 {
     ProtobufHelper.ToStream(obj, stream);
 }
 public T DeserializeFrom <T>(byte[] bytes, int index, int count) where T : SerializerBinary
 {
     return(ProtobufHelper.FromBytes <T>(bytes, index, count));
 }
 public T DeserializeFrom <T>(byte[] bytes) where T : SerializerBinary
 {
     return(ProtobufHelper.FromBytes <T>(bytes));
 }