mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-29 08:20:01 -05:00
patterns: Replaced old bitfield order attributes with new ones
Fixes #265
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
import std.io;
|
import std.io;
|
||||||
|
import std.core;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Types to display single bytes using various different representations
|
Types to display single bytes using various different representations
|
||||||
@@ -20,7 +21,7 @@ namespace auto type {
|
|||||||
bit5 : 1;
|
bit5 : 1;
|
||||||
bit6 : 1;
|
bit6 : 1;
|
||||||
bit7 : 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
|
Type visualizing the value of the two nibbles
|
||||||
|
|||||||
@@ -498,12 +498,12 @@ bitfield SHF {
|
|||||||
bitfield ELF32_R_INFO {
|
bitfield ELF32_R_INFO {
|
||||||
SYM : 8;
|
SYM : 8;
|
||||||
TYPE : 8;
|
TYPE : 8;
|
||||||
} [[left_to_right]];
|
} [[bitfield_order(BitfieldOrder::MostToLeastSignificant, 16)]];
|
||||||
|
|
||||||
bitfield ELF64_R_INFO {
|
bitfield ELF64_R_INFO {
|
||||||
SYM : 32;
|
SYM : 32;
|
||||||
TYPE : 32;
|
TYPE : 32;
|
||||||
} [[left_to_right]];
|
} [[bitfield_order(BitfieldOrder::MostToLeastSignificant, 64)]];
|
||||||
|
|
||||||
bitfield PF {
|
bitfield PF {
|
||||||
X : 1;
|
X : 1;
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ namespace fat32 {
|
|||||||
lastLogical : 1;
|
lastLogical : 1;
|
||||||
padding : 1;
|
padding : 1;
|
||||||
number : 5;
|
number : 5;
|
||||||
} [[left_to_right]];
|
} [[bitfield_order(BitfieldOrder::MostToLeastSignificant, 8)]];
|
||||||
|
|
||||||
enum EntryStatus : u8 {
|
enum EntryStatus : u8 {
|
||||||
Regular = 0x00,
|
Regular = 0x00,
|
||||||
@@ -73,7 +73,7 @@ namespace fat32 {
|
|||||||
subdirectory : 1;
|
subdirectory : 1;
|
||||||
archive : 1;
|
archive : 1;
|
||||||
padding : 2;
|
padding : 2;
|
||||||
} [[right_to_left]];
|
} [[bitfield_order(BitfieldOrder::LeastToMostSignificant, 8)]];
|
||||||
|
|
||||||
struct DirEntry {
|
struct DirEntry {
|
||||||
char fileName[8];
|
char fileName[8];
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ struct DeviceQualifierDescriptor {
|
|||||||
bitfield OTGAttributes {
|
bitfield OTGAttributes {
|
||||||
SRPSupport : 1;
|
SRPSupport : 1;
|
||||||
HNPSupport : 1;
|
HNPSupport : 1;
|
||||||
} [[right_to_left]];
|
} [[bitfield_order(BitfieldOrder::LeastToMostSignificant, 2)]];
|
||||||
|
|
||||||
struct OTGDescriptor {
|
struct OTGDescriptor {
|
||||||
OTGAttributes bmAttributes;
|
OTGAttributes bmAttributes;
|
||||||
|
|||||||
Reference in New Issue
Block a user