@LeoColomb - sure! 
I think the switch to int from bool makes sense - its more consistent. 
but it will definitely break existing projects, so it should be discussed first. 

@arturoc what do you think? we could fix the bug with the bool not always being correctly returned now and then later change it to int return like writeBytes - or we could just change it to int right now.