Edit

Share via


ReaderInput.TryReadBytes(Int32, ReadOnlySpan<Byte>) Method

Definition

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.

Applies to