| Index: base/pickle.cc
|
| diff --git a/base/pickle.cc b/base/pickle.cc
|
| index e7d5768803d8eb02a9d2fbab86031978497e7aaf..116d3f1bf6ee94de811040d642cc04397708aab0 100644
|
| --- a/base/pickle.cc
|
| +++ b/base/pickle.cc
|
| @@ -157,6 +157,20 @@ bool Pickle::ReadSize(void** iter, size_t* result) const {
|
| return true;
|
| }
|
|
|
| +bool Pickle::ReadUInt16(void** iter, uint16* result) const {
|
| + DCHECK(iter);
|
| + if (!*iter)
|
| + *iter = const_cast<char*>(payload());
|
| +
|
| + if (!IteratorHasRoomFor(*iter, sizeof(*result)))
|
| + return false;
|
| +
|
| + memcpy(result, *iter, sizeof(*result));
|
| +
|
| + UpdateIter(iter, sizeof(*result));
|
| + return true;
|
| +}
|
| +
|
| bool Pickle::ReadUInt32(void** iter, uint32* result) const {
|
| DCHECK(iter);
|
| if (!*iter)
|
|
|