binary-structures icon indicating copy to clipboard operation
binary-structures copied to clipboard

padding/alignment doesn't work on fields of unspecific offset

Open Shinmera opened this issue 2 years ago • 1 comments

See https://github.com/Shinmera/binary-structures/blob/main/protocol.lisp#L717

The issue is that padding and alignment are merged into one and not retained as separate fields, so the runtime has no idea how to untangle them and restore the alignment.

Shinmera avatar Dec 23 '23 18:12 Shinmera

This is also related to #5, which would need yet another separate field. We can't push the alignment into the next slot, as it might be a tail slot, or have less strict alignment requirements that would conflict with the padding.

Shinmera avatar Dec 23 '23 18:12 Shinmera