ByteBlockExtensionAsStream 方法
将字节块转换为字节块流。
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
public static ByteBlockStream AsStream(
this ByteBlock byteBlock,
bool releaseTogether = true
)
<ExtensionAttribute>
Public Shared Function AsStream (
byteBlock As ByteBlock,
Optional releaseTogether As Boolean = true
) As ByteBlockStream
[<ExtensionAttribute>]
static member AsStream :
byteBlock : ByteBlock *
?releaseTogether : bool
(* Defaults:
let _releaseTogether = defaultArg releaseTogether true
*)
-> ByteBlockStream
- byteBlock ByteBlock
- 要转换的字节块。
- releaseTogether Boolean (Optional)
- 是否在释放字节块时一起释放关联的资源,默认为true。
ByteBlockStream一个新的字节块流对象。在 Visual Basic 和 C# 中,这个方法可以当成为类型
ByteBlock 的实例方法来调用。在采用实例方法语法调用这个方法时,请省略第一个参数。请参考
扩展方法 (Visual Basic) 或
扩展方法 (C# 编程指南) 获取更多信息。