-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with the function readBytesTerm in "ByteBufferKaitaiStream.java" #35
Comments
Good catch! I came to the conclusion that the signature of method
should be changed to accept
On the other hand, the
So I think it's reasonable to normalize everything to use There is a question of breaking backward compatibility, since we'll need to adjust the compiler to inject the |
Hi,
The line:
int c = bb.get();
in the function readBytesTerm in "ByteBufferKaitaiStream.java"
This should read into an unsigned int variable.
In the kaitai web IDE the code works as:
terminator: 0xfe
but in this project:
terminator: -2 (the byte is read as -2 (int) instead of 254 (unsigned int))
This is an inconsistency.
Thanks!
The text was updated successfully, but these errors were encountered: