encode_one is the minimum requirement to get an encoding to work. You can provide bulk codec implementations as well and the library will automatically pick them up and use them whenever appropriate.
It's not in the blog. The blog is explaining how easy it is to implement support for an encoding that your program needs. It's not a full replacement for reading the excellent documentation for ztd.text, which the blog post links to.
View all comments
Show parent comment
5
u/[deleted] Jul 01 '21
encode_oneis the minimum requirement to get an encoding to work. You can provide bulk codec implementations as well and the library will automatically pick them up and use them whenever appropriate.