Method ReadBytesSpan
ReadBytesSpan()
Reads bytes and returns them without copying when they are contiguous in the input
(always, for span input). A value that straddles sequence segments is copied into a new array.
public ReadOnlySpan<byte> ReadBytesSpan()