]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Support casting arbitary value-types to arrays 5f316333d6a803e4240b5cccc95a6abd2294137b
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 12 Jan 2017 21:01:52 +0000 (22:01 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 12 Feb 2017 18:45:01 +0000 (19:45 +0100)
commit5f316333d6a803e4240b5cccc95a6abd2294137b
tree0e3fbf1e4d7eabf93b2285042ae8568d3d040ca4
parent20a1536f9911c1aadbfbe046bc01afc57bb724a5
codegen: Support casting arbitary value-types to arrays

Also calculate a valid length for the resulting array.

This enables easier usage of common uint8[]-based buffer API.

https://bugzilla.gnome.org/show_bug.cgi?id=777194
codegen/valaccodebasemodule.vala
tests/Makefile.am
tests/structs/bug777194.vala [new file with mode: 0644]