Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Constructor

.ctor

init(bytesWritten: int, state: EncoderState) -> void

Declaring type: EncoderProgress
Module: System.Text
Assembly: System.Runtime.dll
Source file: EncoderProgress.rvn

Creates a drain result for an encoder implementation.

Parameters

Name Type Description
bytesWritten Int32 Nonnegative encoded bytes produced.
state EncoderState An active EncoderState case.

Remarks

Negative counts and inactive default states fault. Providers must additionally respect the destination count supplied to Drain.