Share via


JsonReaderData.ReadBytes(Int32, JsonReaderState) Method

Definition

Called to read bytes from the stream.

public virtual System.Text.Json.Utf8JsonReader ReadBytes (int bytesConsumed, System.Text.Json.JsonReaderState state);
abstract member ReadBytes : int * System.Text.Json.JsonReaderState -> System.Text.Json.Utf8JsonReader
override this.ReadBytes : int * System.Text.Json.JsonReaderState -> System.Text.Json.Utf8JsonReader
Public Overridable Function ReadBytes (bytesConsumed As Integer, state As JsonReaderState) As Utf8JsonReader

Parameters

bytesConsumed
Int32

The bytes consumed so far.

state
JsonReaderState

The current JsonReaderState.

Returns

The new Utf8JsonReader, having read my bytes from the stream.

Applies to