Skip to content

Commit 8db64c6

Browse files
author
喻斌
committed
add empty constructor #69
1 parent 7072d38 commit 8db64c6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace CatLib
1717
/// <summary>
1818
/// 组合流,允许将多个不同的流组合成一个流
1919
/// </summary>
20-
public class CombineStream : Stream
20+
public class CombineStream : WrapperStream
2121
{
2222
/// <summary>
2323
/// 全局游标位置

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ public override long Position
5454
/// </summary>
5555
public override long Length => BaseStream.Length;
5656

57+
/// <summary>
58+
/// 构建一个包装流
59+
/// </summary>
60+
public WrapperStream()
61+
{
62+
BaseStream = this;
63+
}
64+
5765
/// <summary>
5866
/// 构建一个包装流
5967
/// </summary>

0 commit comments

Comments
 (0)