Write the current buffer rounding to the block size (and setting the padding bytes to padding_byte).
Byte to use to fill the padding.
Number of bytes that have been flushed.
See Implementation
Write the current buffer rounding to the block size (and setting the padding bytes to padding_byte).