Skip to content

Commit 6c75a79

Browse files
author
喵喵大人
authored
Merge pull request #94 from CatLib/feature/1.3.0
resolved #70
2 parents 93c4e71 + 94fd752 commit 6c75a79

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/CatLib.Core/Support/Stream/CombineStream.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,20 @@ public override long Position
9090
/// <summary>
9191
/// 是否是可读的
9292
/// </summary>
93-
public override bool CanRead => true;
93+
public override bool CanRead
94+
{
95+
get
96+
{
97+
foreach (var stream in streams)
98+
{
99+
if (!stream.CanRead)
100+
{
101+
return false;
102+
}
103+
}
104+
return true;
105+
}
106+
}
94107

95108
/// <summary>
96109
/// 是否是可写的

0 commit comments

Comments
 (0)