Comments (6)
the attribute works. what doesn't work is the summary value of the bitfield.
from imhex.
Hidden means that its variable will not be seen in the set of variables shown in pattern data window not that the value will be ignored if accessed. Why is it not printing for the two rats?
from imhex.
There is no way for me to access this value from the constructed pattern table (because it is set to hidden), so why would it display it in the value overview? It makes no logical sense.
I specifically want it to be hidden so I set it to hidden.
from imhex.
Again, that's not what hidden does. The attribute [[hidden]] doesn't erase the variable and its value can be displayed, but the member variable will not be listed in the contents of the pattern that contains it.
Perhaps you should use the padding data type which will be non-existent as a variable.From online docs:
Padding
Itβs also possible to insert padding in between fields using the padding syntax.
bitfield Flags {
a : 1;
b : 2;
padding : 4;
c : 1;
};
This inserts a 4 bit padding between field b and c.
If this was a struct you could also leave the field anonymous, but i don't think bit-fields can have anonymous members.
from imhex.
I dont want to use padding, it is ImHex specific.
If [[hidden]]
does not do what it is logically and empirically supposed to do (or what its alternative does in 010 Editor) then it needs to be/should be/could be updated to be wider or have a modifier that can do full hide.
from imhex.
To me, this looks like you are really looking for padding: https://docs.werwolv.net/pattern-language/core-language/data-types#padding.
Also, to clarify, it looks like the [[hidden]]
attribute doesn't correctly hide the bitfield values, not struct members.
from imhex.
Related Issues (20)
- [Bug] Can not remove a patch
- [Bug] imhex run exit
- [Bug] Slice buffer node range excludes "To" index
- [Feature] Support for two's complement encoded integers in the Data Processor
- [Feature] Display pattern data even on failure (best effort) HOT 1
- [Bug] Requested file dialog returned an error: D-Bus file dialog interaction was ended abruptly with response code 2. HOT 1
- [Feature] vertical selection
- [Bug] Unable to enter hexadecimal as alignment HOT 1
- [Bug] ImHex crach when try to open a file HOT 2
- [Feature] base58 support HOT 1
- [Feature] Add support zstd stream data to `hex::dec::zstd_decompress`
- [Bug] Build fails with cmake 3.30+ HOT 4
- [Feature] Export section data as Pattern Data HOT 6
- [Bug] Parser error on placement of anonymous variable inside struct HOT 4
- [Feature] Pasting text in hex editor
- linker error when compiling from source -- seems to not be -lopengl32 ? HOT 2
- [Bug] Scaling on Windows not implemented properly multiple scales and 4k. HOT 1
- Data Processor doesn't support Float value calculations.
- can I use imhex to see the export libraries of a dll? HOT 2
- [Bug] Integer to Buffer conversion not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imhex.