Now I see it... the opportunity to attach buffer instead of filename is already there https://github.com/melounek/CodeIgniter/blob/develop/system/libraries/Email.php#L1367
documented there https://github.com/melounek/CodeIgniter/blob/develop/user_guide_src/source/changelog.rst (find "email library")

anyway... today I will send actual pull request...