示例#1
0
 public byte[] ToBytes()
 {
     return(DirectProtoBufTools.Serialize(this));
 }
示例#2
0
 public T FromBytes(byte[] data, int offset, int size)
 {
     return(DirectProtoBufTools.Deserialize <T>(data, offset, size));
 }