The write and update functions would verify depending on the flag.
This would imply a footprint increase even if you never would use verify.
Optimization thoughts
Optimizations could be created on the lowest level e.g. by verifying (partial) blocks on page level.
That could decrease the runtime memory needed, typical a buffer of I2C_BUFFERSIZE only to be allocated if verify == true
Two different approaches possible
extra functions
This is clear for the user. The functions can be implemented as wrappers around the existing write / update / read functions.
verify flag functions
The write and update functions would verify depending on the flag. This would imply a footprint increase even if you never would use verify.
Optimization thoughts
Optimizations could be created on the lowest level e.g. by verifying (partial) blocks on page level. That could decrease the runtime memory needed, typical a buffer of I2C_BUFFERSIZE only to be allocated if verify == true
Triggered by #39