```{index} single: native_obj_decode; Encode function ``` ```{index} single: Encode::native_obj_decode; Perl function ``` # native_obj_decode Method form of `decode` on an encoding object. ## Synopsis ```perl my $enc = find_encoding('UTF-8'); my $string = $enc->decode($bytes); my $string = $enc->decode($bytes, $check); ``` Behaves like the function form of `decode` with the encoding name already bound. When `$check` is non-zero, the portion of `$bytes` that was successfully consumed is removed from it, so a partial trailing character can be prepended to the next chunk in a streaming decoder.