Comments (3)
Why only for [[hidden]]? Anyway, this has been asked already in a pattern language issue and partially addressed there.
from imhex.
Isn't this the same thing?
if (condition)
SomeType var;
else
padding[sizeof(SomeType)];//or maybe SomeType var[[hidden]];
and that has always been possible. As for arbitrary conditional attribute with parameters you can use the ternary conditional operator to set the parameter value which in effect is the feature requested in issue #16. If nameString
and indexString
are defined in pattern then the following already works.
} [[name(value==35 ? nameString : "["+indexString+"]")]];
from imhex.
The idea is:
[[hidden(value==35)]]
More clear and concise, succinct declaration, easier to read
from imhex.
Related Issues (20)
- [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
- [Feature] Set default value for `in` variables in patterns
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.