diff options
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 422a1a30..3538e12 100644 --- a/base/pickle.h +++ b/base/pickle.h @@ -90,6 +90,7 @@ class Pickle { // be extracted. bool ReadBool(void** iter, bool* result) const; bool ReadInt(void** iter, int* result) const; + bool ReadLong(void** iter, long* result) const; bool ReadSize(void** iter, size_t* result) const; bool ReadInt64(void** iter, int64* result) const; bool ReadIntPtr(void** iter, intptr_t* result) const; @@ -112,6 +113,9 @@ class Pickle { bool WriteInt(int value) { return WriteBytes(&value, sizeof(value)); } + bool WriteLong(long value) { + return WriteBytes(&value, sizeof(value)); + } bool WriteSize(size_t value) { return WriteBytes(&value, sizeof(value)); } |