If you are just working on the type in julia code, it doesn’t matter. All operations are most easily done on the UInt32
and it’s the difference between using reinterpret
and field access.
If you are passing this to/from C, then the argument and return type must be primitive type (assuming it’s a uint32_t
in C). Using a primitive type is easier in this case though there’s nothing wrong with passing a UInt32
to C and convert that to your struct in julia either.