# Serialize **Repository Path**: zydp/Serialize ## Basic Information - **Project Name**: Serialize - **Description**: 序列化/反序列化 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Serialize # using it like this bool b = true; int i32 = 2; double f64 = 3.0; std::string strMsg = "this is a test str."; CSerialize sz; sz << b << i32 << f64 << strMsg; std::cout << sz.GetSerStatus() << sz.GetIndex() << sz.Serialize() << std::endl; # --------------------------------------------- CSerialize rsz(sz.Serialize(), sz.GetIndex()); bool b_2; int i32_2; double f64_2; std::string strMsg_2; rsz >> b_2 >> i32_2 >> f64_2 >> strMsg_2; std::cout << b_2 << "|" << i32_2 << "|" << f64_2 << "|" << strMsg_2 << std::endl; sz.Release(); //optional //rsz.Release(); # the output 134 1|2|3|this is a test str.