Zero-pads the buffer, which may be required for some struct layouts.
@pragma('vm:prefer-inline') void pad(int howManyBytes) { for (var i = 0; i < howManyBytes; i++) { putUint8(0); } }