How do you use serialize for mulitple variables?

I have position and rotation vectors I want to serialize.

stream.Serialize(pos);
stream.Serialize(rot);

Can I simply perform this ^^^ or do I need to do it another way? Right now I don’t think that its working as the rotation values don’t seem to be getting serialized.

thats fine this way. it writes in the second serialization right after the first one.

Ah good. Must be another error in my code then.