Skip to content

Commit

Permalink
Merge pull request #94 from CatLib/feature/1.3.0
Browse files Browse the repository at this point in the history
resolved #70
  • Loading branch information
喵喵大人 authored Dec 3, 2018
2 parents 93c4e71 + 94fd752 commit 6c75a79
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/CatLib.Core/Support/Stream/CombineStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,20 @@ public override long Position
/// <summary>
/// 是否是可读的
/// </summary>
public override bool CanRead => true;
public override bool CanRead
{
get
{
foreach (var stream in streams)
{
if (!stream.CanRead)
{
return false;
}
}
return true;
}
}

/// <summary>
/// 是否是可写的
Expand Down

0 comments on commit 6c75a79

Please sign in to comment.