#how to cast it to array
1 messages · Page 1 of 1 (latest)
Oh wait I guess that is what you did
You could try transmute it first to a [1]u8
Like just transmute([1]u8)z
when you transmute data both parts must be the same size. if you don't know the size you can use size_of()
and you can't transmute a type.
z := greet{1}
x := transmute([1]u8)z
and forever into the void it went