Hi Sean.

2012/7/29 Sean Bartell <[email protected]>:
> Hello, everyone,
>
> I've finished implementing parameters in Bithenge. You can see the
> possibilities in the new example file[0]. Parameters make it possible to
Good job. I have tried it and it works :-). Though I was confused a
bit where the .len (in pascal_string) came from. In my opinion, the
original version of the file [1] was more intuitive. On the other
hand, it shows that Bithenge supports "nesting". Very nice.

> handle fields of known length as well as length fields followed by data.
> However, many cases are not yet possible; for instance, USB descriptors
> can't use the length field because it includes its own length. This will
> be possible once scripts can get arbitrary subblobs.
I am not sure I follow. I thought that these subblobs would be useful
when the data contains some kind of pointers in them (e.g. that actual
data are at given offset). But here you have a bit different
situation, IMHO. If the descriptor is of unknown type (e.g. some
vendor specific), you want to skip next (.bLength - 2) bytes and
decode next descriptor. (Obviously, if you know the descriptor type,
you ignore the .bLength field.) I do not see how subblobs would help
you. What have I missed?

> I'm currently one day behind schedule; hopefully, I'll be able to make
> it up later. My next task is to implement conditions (if and switch).

Thanks for the report.

- Vojta

[1] 
http://bazaar.launchpad.net/~wtachi/helenos/bithenge/view/1537/uspace/dist/src/bithenge/test.bh

> Thanks,
> Sean Bartell
>
> [0] 
> https://bazaar.launchpad.net/~wtachi/helenos/bithenge/view/head:/uspace/dist/src/bithenge/test.bh
>
> _______________________________________________
> HelenOS-devel mailing list
> [email protected]
> http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

> Thanks,
> Sean Bartell
>
> [0] 
> https://bazaar.launchpad.net/~wtachi/helenos/bithenge/view/head:/uspace/dist/src/bithenge/test.bh
>
> _______________________________________________
> HelenOS-devel mailing list
> [email protected]
> http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to