If that's the purpose then we can skip it. The length of the buffer is always equal to the length of the changes in the sector. If the sector is just half filled then EBlink will skip all trailing 0x00 (the erase value set by the device API) because it's already cleared by the sector erase.
Sometimes a MCU needs a full sector size to program and with the
option we can disable the sector trimming. But even then a sector will never be written with some lefts over of buffers. On sector erase the internal sector cache is reset to the earseValue and the content of the sector cache is passed by the EBuffer.
Sometimes a MCU needs a full sector size to program and with the
Code:
DeviceApi::setFlashDontTrim()