serialize — Generates a storable representation of a value serialize — 產(chǎn)生一個可存儲的值的表示 unserialize — Creates a PHP value from a stored representation unserialize — 從已存儲的表示中創(chuàng)建 PHP 的值 很顯然,"a stored representation"的解釋翻譯成了一個可存儲的值后依然很讓人非常費解它的意思。
protobuf的Demo程序是 C++版本的protubuf有幾種serialize和unSerialize的方法: 方法一: 官方demo程序采用的是 復(fù)制代碼代碼如下: // Write the new address book back to disk. fstream output(argv[1], ios::out | ios::trunc | ios::binary);