public void Reset() { foreach (var rxByte in RxBytes.Values) { YuLegoRxStrcutPool.RestoreRxByte(rxByte); } RxBytes.Clear(); foreach (var rxShort in RxShorts.Values) { YuLegoRxStrcutPool.RestoreRxShort(rxShort); } RxShorts.Clear(); foreach (var rxInt in RxInts.Values) { YuLegoRxStrcutPool.RestoreRxInt(rxInt); } RxInts.Clear(); foreach (var rxLong in RxLongs.Values) { YuLegoRxStrcutPool.RestoreRxLong(rxLong); } RxLongs.Clear(); foreach (var rxStr in RxStrs.Values) { YuLegoRxStrcutPool.RestoreRxStr(rxStr); } RxStrs.Clear(); foreach (var rxFloat in RxFloats.Values) { YuLegoRxStrcutPool.RestoreRxFloat(rxFloat); } RxFloats.Clear(); foreach (var rxDouble in RxDoubles.Values) { YuLegoRxStrcutPool.RestoreRxDouble(rxDouble); } RxDoubles.Clear(); foreach (var rxBool in RxBools.Values) { YuLegoRxStrcutPool.RestoreRxBool(rxBool); } RxBools.Clear(); }
public void Release() { YuLegoRxStrcutPool.RestoreRxInt(SelectIndex); }