Are bitmasks safe for cross platform network replication?

Use int32. It’s cross platform compatible. It’s far easier to compare an int32 bitmasked value to 63 (11 1111) than it is to compare a float to whatever 11 1111 might be in float. It’s also much easier to punch in on a calculator. It’s pretty much the industry standard to use integers for bitmasking.