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

API Browser

Interface

Decoder

interface Decoder

Module: System.Text
Assembly: System.Runtime.dll
Source file: Decoder.rvn

Converts bounded byte ranges into valid text while owning incomplete input.

Remarks

Development API. Success consumes the entire offered range. UTF-8 retains at most three bytes internally; it does not retain the borrowed source. Limit preflight leaves state unchanged. Invalid windows fault at construction. Malformed input and finalization end the decoder. Not thread safe.

Methods

1 item
Decode(source: ReadOnlySlice<byte>, final: bool) -> Result<string, EncodingError> Decodes a borrowed byte window, copying incomplete scalars into owned state. Defined by Decoder.Decode · Required implementation (no default).