Comments (4)
could you show some use case where unsigned int32 would be useful? because in Java we don't have unsigned int and how are you going to use it?
from java-binary-block-parser.
I have to parse some data serialized by python which has such type. So for pure java there is no use case but when you parse data from another language it is useful.
from java-binary-block-parser.
We wanted to use JBBP but had to rethink because of it not being able to handle unsigned 8/16/32 bit. Many bit protocols contain unsigned variables.
Here is gist I found trying to solve it by representing uint32 as a long:
https://gist.github.com/alastairmccormack/ac1539784af7ae7569cd50135016cf2c
Another safer approach could be representing it with Guava UnsignedInteger:
https://github.com/google/guava/blob/master/guava/src/com/google/common/primitives/UnsignedInteger.java
from java-binary-block-parser.
I have added type uint which describes int32 field saved through long, you can try SNAPSHOT
from java-binary-block-parser.
Related Issues (20)
- NullPointerException when using new JBBPDslBuilder HOT 5
- "Expression is empty" error when using arrays HOT 8
- PatternSyntaxException when use on Android. HOT 2
- support multiple custom type processors? HOT 1
- Illegal reflective access reported when used with JDK 11 HOT 2
- Bug in parsing of stringj written in MSB0 HOT 5
- Strings in other codecs HOT 3
- JBBPByteOrder may add nativeOrder and inheritOrder HOT 3
- Processing Nullable fields exceptions HOT 8
- Issue with simple object parse HOT 2
- how to set JBBPByteOrder for JBBPParser ? HOT 3
- How to read/parse stringj when here is no '3' mark? HOT 3
- parse dns query data packge
- Filter fields for JBBPOut HOT 3
- Error running gradle plugin task jbbpGenerate in gradle 7.4.2 HOT 3
- Really great project!
- Gradle plugin error: Cannot add extension with name 'jbbp', as there is an extension already registered with that name HOT 5
- Use child class for parsing will throw java.lang.IllegalStateException: There is not any opened struct HOT 4
- Unpack float with endian HOT 2
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 java-binary-block-parser.