一款简单易用的基础网络通讯组件库。

ByteBlockGetSpan 方法

Returns a SpanT to write to that is at least the requested size (specified by sizeHint).

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public Span<byte> GetSpan(
	int sizeHint = 0
)

参数

sizeHint  Int32  (Optional)
The minimum length of the returned SpanT. If 0, a non-empty buffer is returned.

返回值

SpanByte
A SpanT of at least the size sizeHint. If sizeHint is 0, returns a non-empty buffer.

实现

IBufferWriterTGetSpan(Int32)

参见