Petr Pučil
Petr Pučil
@wader Also note that if the intention is to parse something _from the current position_, the instance has to use `pos: _io.pos`. And I've just realized that this thing I...
@darkdread: > If the type of a field is a bit-sized integer (bXX), when we use a `switch-on` type, the underlying matched case > uses the next byte in the...
@wader: > ```ksy > instances: > a: > value: '"hello".substring(4,1)' > ``` This is pretty much undefined behavior right now. As you can see in https://doc.kaitai.io/user_guide.html#str-methods, the `str.substring()` method expects...
@wader Unrelated: GitHub has quite good syntax highlighting for code blocks, but you need to [specify the language](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting). For your comment here (https://github.com/kaitai-io/kaitai_struct/issues/1021#issue-1664302708), it would be `` ```ksy `` (it...
@wader: > I'm not sure how people usually use kaitai but maybe most generate to one language so don't notice differences much? Yes, I think so. All targets find their...
@wader: > I also found a difference for `.to_i` when there is trailing garbage. (...) Should I create a new issue for that? Yes, please, much appreciated ❤️
@msarrel: > There has to be a shorter way. Maybe something like list inclusion? As @KOLANICH points out, there is no dedicated built-in way in the expression language other than...
@burner1024: > No way to define and parse linked/connected file formats together? Actually, there is a way. The main idea is to pass the streams of related files via top-level...
@wader Thanks for sharing this. I agree that the behavior you demonstrate is very weird, but I'd say that the expected behavior is simple - only the `s0` and `s1`...
@wader: > So as i understand it now the enum resolution is something like this: (...) Yes, looks good. Just noting that "look for enum" here: > If there is...