Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Unified Diff: base/pickle.cc

Issue 11416150: Add support to Pickle for reading and writing floats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows build Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/pickle.h ('k') | base/pickle_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/pickle.cc
diff --git a/base/pickle.cc b/base/pickle.cc
index 0e44131f69ba316c4c7a16b7c2c2a2a3f6f65afa..00c6ef06f36aadbe10a9c5de7b3dbc7d6730fa57 100644
--- a/base/pickle.cc
+++ b/base/pickle.cc
@@ -90,6 +90,10 @@ bool PickleIterator::ReadUInt64(uint64* result) {
return ReadBuiltinType(result);
}
+bool PickleIterator::ReadFloat(float* result) {
+ return ReadBuiltinType(result);
+}
+
bool PickleIterator::ReadString(std::string* result) {
int len;
if (!ReadInt(&len))
« no previous file with comments | « base/pickle.h ('k') | base/pickle_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698