correctly add padding between data and tag id

This commit is contained in:
Folkert 2023-03-26 18:23:50 +02:00
parent fb4a56e916
commit c0f49ce62c
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 167 additions and 13 deletions

View file

@ -326,6 +326,10 @@ impl<'ctx> RocUnion<'ctx> {
Self::new(context, target_info, data_align, data_width, None)
}
pub fn data_width(&self) -> u32 {
self.data_width
}
pub fn tag_alignment(&self) -> u32 {
let tag_id_alignment = match self.tag_type {
None => 0,