Index: base/pickle.h |
diff --git a/base/pickle.h b/base/pickle.h |
index 3de2886e5d4c742e79e8d870922027c1dda44e1d..77339772a6451d5b1a0688eca3cb44bc1510963f 100644 |
--- a/base/pickle.h |
+++ b/base/pickle.h |
@@ -34,6 +34,7 @@ class BASE_EXPORT PickleIterator { |
bool ReadUInt32(uint32* result) WARN_UNUSED_RESULT; |
bool ReadInt64(int64* result) WARN_UNUSED_RESULT; |
bool ReadUInt64(uint64* result) WARN_UNUSED_RESULT; |
+ bool ReadUIntPtr(uintptr_t* result) WARN_UNUSED_RESULT; |
bool ReadFloat(float* result) WARN_UNUSED_RESULT; |
bool ReadString(std::string* result) WARN_UNUSED_RESULT; |
bool ReadWString(std::wstring* result) WARN_UNUSED_RESULT; |
@@ -159,6 +160,9 @@ class BASE_EXPORT Pickle { |
bool ReadUInt64(PickleIterator* iter, uint64* result) const { |
return iter->ReadUInt64(result); |
} |
+ bool ReadUIntPtr(PickleIterator* iter, uintptr_t* result) const { |
+ return iter->ReadUIntPtr(result); |
+ } |
bool ReadFloat(PickleIterator* iter, float* result) const { |
return iter->ReadFloat(result); |
} |
@@ -222,6 +226,9 @@ class BASE_EXPORT Pickle { |
bool WriteUInt64(uint64 value) { |
return WriteBytes(&value, sizeof(value)); |
} |
+ bool WriteUIntPtr(uintptr_t value) { |
+ return WriteBytes(&value, sizeof(value)); |
+ } |
bool WriteFloat(float value) { |
return WriteBytes(&value, sizeof(value)); |
} |