ReaderInput.TryReadBytes(Int32, ReadOnlySpan<Byte>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to read the specified number of bytes from the input.
public abstract bool TryReadBytes (int length, out ReadOnlySpan<byte> bytes);
abstract member TryReadBytes : int * ReadOnlySpan -> bool
Public MustOverride Function TryReadBytes (length As Integer, ByRef bytes As ReadOnlySpan(Of Byte)) As Boolean
Parameters
- length
- Int32
The number of bytes to read..
- bytes
- ReadOnlySpan<Byte>
The bytes which were read..
Returns
true
if the number of bytes were successfully read, false
otherwise.