Utf8Decoder.decode
const(char)[] decode(return scope const(char)[] chunk) @nogc nothrow pure @safe returnDecode a chunk. It returns chunk itself if it's valid (the common case), else a copy with the replacements, valid until the next call. An incomplete sequence at the end is kept for the next chunk.