Go, Kernel, Unsafe, Golang.
similar data types. The structures are all padded to keep in mind the cache alignment. That’s why if you print the msgC variable, we get the output &{1 [145 84 1] 1024} Here, 1 and 1024 were initialized in the C code. 145, 84, 1 are uint8 size elements padded so that the total size comes up to 64.