diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-28 04:21:01 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-28 04:21:01 +0000 |
commit | b7a5d9953f0b44ecbfb25687ed35e52e7f65bff7 (patch) | |
tree | c5bdb4ac4708da73e4827789b5a622a03ddc5bd9 /base/pickle.h | |
parent | 1dc1dffcf9ba7823511684da330a6ce0a8eb40ed (diff) | |
download | chromium_src-b7a5d9953f0b44ecbfb25687ed35e52e7f65bff7.zip chromium_src-b7a5d9953f0b44ecbfb25687ed35e52e7f65bff7.tar.gz chromium_src-b7a5d9953f0b44ecbfb25687ed35e52e7f65bff7.tar.bz2 |
Add Pickle::Read/WriteUint64.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/297011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30320 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/pickle.h')
-rw-r--r-- | base/pickle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/pickle.h b/base/pickle.h index 9760483..850d4dc 100644 --- a/base/pickle.h +++ b/base/pickle.h @@ -70,6 +70,7 @@ class Pickle { bool ReadSize(void** iter, size_t* result) const; bool ReadUInt32(void** iter, uint32* result) const; bool ReadInt64(void** iter, int64* result) const; + bool ReadUInt64(void** iter, uint64* result) const; bool ReadIntPtr(void** iter, intptr_t* result) const; bool ReadString(void** iter, std::string* result) const; bool ReadWString(void** iter, std::wstring* result) const; @@ -103,6 +104,9 @@ class Pickle { bool WriteInt64(int64 value) { return WriteBytes(&value, sizeof(value)); } + bool WriteUInt64(uint64 value) { + return WriteBytes(&value, sizeof(value)); + } bool WriteIntPtr(intptr_t value) { return WriteBytes(&value, sizeof(value)); } |