patterns: Replaced old bitfield order attributes with new ones

Fixes #265
This commit is contained in:
WerWolv
2024-07-02 18:00:41 +02:00
parent 4d0b3e21bc
commit d7811ff5e9
4 changed files with 7 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
import std.io;
import std.core;
/*!
Types to display single bytes using various different representations
@@ -20,7 +21,7 @@ namespace auto type {
bit5 : 1;
bit6 : 1;
bit7 : 1;
} [[format("type::impl::format_bits"), right_to_left]];
} [[format("type::impl::format_bits"), bitfield_order(std::core::BitfieldOrder::LeastToMostSignificant, 8)]];
/**
Type visualizing the value of the two nibbles

View File

@@ -498,12 +498,12 @@ bitfield SHF {
bitfield ELF32_R_INFO {
SYM : 8;
TYPE : 8;
} [[left_to_right]];
} [[bitfield_order(BitfieldOrder::MostToLeastSignificant, 16)]];
bitfield ELF64_R_INFO {
SYM : 32;
TYPE : 32;
} [[left_to_right]];
} [[bitfield_order(BitfieldOrder::MostToLeastSignificant, 64)]];
bitfield PF {
X : 1;

View File

@@ -52,7 +52,7 @@ namespace fat32 {
lastLogical : 1;
padding : 1;
number : 5;
} [[left_to_right]];
} [[bitfield_order(BitfieldOrder::MostToLeastSignificant, 8)]];
enum EntryStatus : u8 {
Regular = 0x00,
@@ -73,7 +73,7 @@ namespace fat32 {
subdirectory : 1;
archive : 1;
padding : 2;
} [[right_to_left]];
} [[bitfield_order(BitfieldOrder::LeastToMostSignificant, 8)]];
struct DirEntry {
char fileName[8];

View File

@@ -231,7 +231,7 @@ struct DeviceQualifierDescriptor {
bitfield OTGAttributes {
SRPSupport : 1;
HNPSupport : 1;
} [[right_to_left]];
} [[bitfield_order(BitfieldOrder::LeastToMostSignificant, 2)]];
struct OTGDescriptor {
OTGAttributes bmAttributes;