kaitai_struct_javascript_runtime icon indicating copy to clipboard operation
kaitai_struct_javascript_runtime copied to clipboard

Kaitai Struct: runtime for JavaScript

Results 9 kaitai_struct_javascript_runtime issues
Sort by recently updated
recently updated
newest added

Fixes https://github.com/kaitai-io/kaitai_struct/issues/783. This is the first bug, it is present only in JavaScript runtime. The second fixed bug is an incorrect reading of negative `s8` numbers. See the failed tests...

This PR adds the following * Rewrite in TypeScript, the JS version was used as the base but I've done tons of code splitting and rewriting to make the code...

The following line: https://github.com/kaitai-io/kaitai_struct_javascript_runtime/blob/1ae3924e68a29ff43b32b30debfdadd3e320c8ec/KaitaiStream.js#L585 is marked in VS Code with a deprecation warning: ![image](https://user-images.githubusercontent.com/47499687/153144641-797531b8-32fb-4f41-b749-1305ace63c5d.png) Related article in Node.js docs: **https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/**

bug

This is a continuation of #18, resolving some of the comments there and adding additional types and fixes. Notable changes from #18: - Merged in new changes from `master` -...

Took a few tries but I think I got it right. It should work when used as an ambient module or through a module system. I think it would be...

When doing bitwise operations in JS the values are always converted to a ~~signed~~ (edit: not always signed, see [here](https://tc39.es/ecma262/#sec-numberbitwiseop)) 32-bit integer and the result is also always a signed...

From PR #10, I understood that @GreyCat is generally open to moving over this whole library to TypeScript, as long as we don't break compatibility. Since I am interested in...

The current javascript implementation requires reading a whole file into memory (ArrayBuffer). This is not good if I want to read a large file, for example a very big zip...

enhancement

TODOs: - [x] go back and fix formatting to be more consistent, i accidentally allowed my ide to auto-format stuff. - [x] reorder functions to be in a more logical...