Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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