Petr Pučil

Results 327 comments of Petr Pučil

Normally yes, but if that bothers you, you can do ```java Gif g = Gif.fromFile("path/to/local/file.gif"); // ... g._io().close(); ``` Also on the subject of `close()`: the `fromFile()` method uses the...

The relevant type [`uleb128`](https://github.com/kaitai-io/kaitai_struct_formats/blob/b90cf2957608ad5fb24954cfe344e95cb0993d2a/executable/mach_o.ksy#L317) should be replaced with [`common/vlq_base128_le`](https://github.com/kaitai-io/kaitai_struct_formats/blob/cca4245641c1977c8c58a3e06fce1ee9e222c516/common/vlq_base128_le.ksy) (via import) and the problem should only be fixed there. I guess some type conversions will have to be added there....

@KOLANICH: > There are lot of specs around GH for some formats that have not been sent to KSF. BTW, I have a list of GitHub repositories that contain .ksy...

@KOLANICH: > #88 is also related to the question raised here. Yes, that immediately occurred to me as well. But it's not implemented, so let's not pollute this question. @Jasuf:...

Thanks for the report! > Notice that `m_packets` and `n_packets` are not initialized? This can lead to the following cleanup code actually deleting a packet that was never actually created....

> Have you seen this before? Yeah, I've just checked that we already have a test [`debug_switch_user.ksy`](https://github.com/kaitai-io/kaitai_struct_tests/blob/fd46e606f09e668891ecf43aac3e6c74cf3b0180/formats/debug_switch_user.ksy) with the same pattern in the generated code (see [`debug_switch_user.cpp:17`](https://github.com/kaitai-io/ci_targets/blob/89220c43d95f79268d5f6bf4dea70f1f558d1164/compiled/cpp_stl_11/debug_switch_user.cpp#L17): ```cpp static_cast(m_data)->_read(); ```...

Actually, that's understandable due to how `sizeof` is implemented in the current compiler. Currently, `sizeof` is designed to just yield a compile-time constant if available (an exact integer known at...

@dgelessus > Does that mean that both variants can only return compile-time constant sizes, and the only difference is that one is called on a type and the other on...

Choose `serialization/ruby_marshal.ksy` in the left sidebar in the [Web IDE](https://ide.kaitai.io/) and upload some sample file (https://github.com/kaitai-io/kaitai_struct_webide/wiki/Features#drag--drop-files-directly-into-editor) to see how the data are structured. Then use this knowledge to extract the...

@ZEkA10000: > But `Web IDE` returns this with same file > > ``` > version = [4, 8] > records [Record] > code = 0x6f = 111 > ``` Hmm,...