adamvr / arduino-base64

A base64 library for the arduino platform, written in C
MIT License
184 stars 102 forks source link

Simplified calculation of base64 encoded and decoded length #28

Open gfoidl opened 2 years ago

gfoidl commented 2 years ago

For encoded length there's no need for the costly modulo operator. For decoded length we can use bit-shifts instead of costly division.