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] Hex Editor scroll don't work properly using "Jump To" HOT 1
- [Bug] UI doesn't start without raising an error on Ubuntu
- [Bug] File dialog is no longer parented properly on Linux X11 HOT 1
- [Bug] find_sequence can fail if based_address is not zero.
- [Feature] Highlight multiple paragraphs with the same color when creating a bookmark
- [Bug] Base64 provider does not work on files with newlines HOT 3
- [Bug] Graphical corruption and mouse clicking incorrect on Windows 10 HOT 2
- [Bug] Chinese(Simplified) got doubled in the language list
- [Bug] Window becomes completely unresponsive after resizing HOT 12
- [Feature]
- [Feature] Enhance data processing feature
- [Bug] "Edit the hex" achievement doesn't unlock HOT 2
- [Bug] Context menus fail to close
- [Bug] Byte-by-byte diffing view not properly displaying adding/removing of data at the end
- [Feature] Support Adding Custom Types within data inspector from pattern editor HOT 5
- [Bug] Open file/project immediately crashes ImHex HOT 3
- [Bug] Opening project fails if binary file is missing HOT 7
- [Bug] Cannot cast bitfield in bitfield/struct to type 'integer' HOT 5
- [Feature] Move a file to a separate window
- [Bug] shouldRender produces unexpected behavior in 3D visualizer HOT 1
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.