Change the type of the data stream from `QDataStream` to `XDataStream` for consistency and to align with the rest of the codebase.
Change the type of the data stream from `QDataStream` to `XDataStream` for consistency and to align with the rest of the codebase.