BufferedReaderMemoryExtensions.ReadBytesSpanCopy(BufferedReader, Int32) Method

Definition

Reads from BufferedReader and returns a Span<T> copy of it

This method does allocate

public static ReadOnlySpan<byte> ReadBytesSpanCopy (this VoltRpc.IO.BufferedReader reader, int size);

Parameters

size
Int32

Returns

ReadOnlySpan<Byte>

Applies to