/// <summary> /// clear Pool /// </summary> public static void PoolDispose() { #if POOL if (_sharedInputSteam != null) { _sharedInputSteam.Dispose(); _sharedInputSteam = null; } if (_sharedOutSteam != null) { _sharedOutSteam.Dispose(); _sharedOutSteam = null; } #endif }
public void Dispose_FromByteArray() { var stream = new CodedInputStream(new byte[10]); stream.Dispose(); }
public void Dispose_WithByteArray() { var cis = new CodedInputStream(new byte[0]); Assert.DoesNotThrow(() => cis.Dispose()); }