You can create an array in Vala as int[] b = { 2, 4, 6, 8 };
. Hence you should be able to create it with a single variable too as uint8 [] some_array = {some_integer};
; in your case desc.write({some_integer}, 1);
.
Here's a detailed guide on Vala for further references.