mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
16 lines
477 B
C#
16 lines
477 B
C#
namespace Cosmos.Debug.Common
|
|
{
|
|
public abstract class DebugConnectorStreamWithTimeouts : DebugConnectorStreamWithoutTimeouts
|
|
{
|
|
protected override int TryRead(byte[] buffer, int offset, int count, int timeout)
|
|
{
|
|
var xStream = mStream;
|
|
if (xStream == null)
|
|
{
|
|
return 0;
|
|
}
|
|
mStream.ReadTimeout = timeout;
|
|
return xStream.Read(buffer, offset, count);
|
|
}
|
|
}
|
|
}
|