Skip to main content

decode

Function decode 

Source
pub fn decode<Ctx, E>(
    ctx: Ctx,
    errors: &E,
    order: ByteOrder,
    final_decode: bool,
) -> Result<(Wtf8Buf, usize, i32), Ctx::Error>
where Ctx: DecodeContext, E: DecodeErrorHandler<Ctx>,
Expand description

Decode one incremental chunk.

Returns (text, consumed, byteorder) where byteorder is CPython’s -1 / 0 / 1.