WriterExtensionWriteByteBlockTWriter(TWriter, ByteBlock) 方法
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
public static void WriteByteBlock<TWriter>(
ref TWriter writer,
ByteBlock byteBlock
)
where TWriter : IBytesWriter
Public Shared Sub WriteByteBlock(Of TWriter As IBytesWriter) (
ByRef writer As TWriter,
byteBlock As ByteBlock
)
static member WriteByteBlock :
writer : 'TWriter byref *
byteBlock : ByteBlock -> unit when 'TWriter : IBytesWriter
- writer TWriter
- 字节写入器实例。
- byteBlock ByteBlock
- 要写入的ByteBlock对象。
- TWriter
- 实现IBytesWriter接口的写入器类型。
如果byteBlock为 ,则写入长度为0;
否则先写入长度信息(长度+1),再写入字节块内容。