/// <summary> /// 重置为初始状态 /// </summary> public void Reset() { _recvBuffOffset = 0; _packetLength = 0; _packetParser.Reset(); }
/// <summary> /// 数据清除 /// </summary> public void Dispose() { _recvBuffers = null; _packetParser?.Reset(); _packetParser = null; }