private void ReadData() { byte[] data = NetEncode.Decode(ref receiveCache); if (data != null)//说明数据保存成功 { if (callBackRecvOver != null) { callBackRecvOver(data); } ReadData(); } else { isReceiving = false; } }
public List <byte[]> GetNetBytes() { byte[] buffer = ProtoSerialize.Serialize(model); return(NetEncode.Encode(buffer)); }