add EncodedSize that calculates the encoded size more efficiently. (#245)
Co-authored-by:Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
Co-authored-by:Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>