KAA-280: Add ability to write buffer with alignment.