Return a tuple containing the raw bytes of buffer, a buffer-compatible object or str (encoded to UTF-8 before processing), and their length in bytes.
>>> codecs.readbuffer_encode(b"Zito") (b'Zito', 4)
codecs/readbuffer_encode
readbuffer_encode