| Index: base/pickle.h
|
| diff --git a/base/pickle.h b/base/pickle.h
|
| index baa20f6d88d5741d30ea34d6e933f634d1ef2f8d..2420f756270df665b2f164a5b4ff630779889a0f 100644
|
| --- a/base/pickle.h
|
| +++ b/base/pickle.h
|
| @@ -257,15 +257,16 @@ class BASE_EXPORT Pickle {
|
| return static_cast<const T*>(header_);
|
| }
|
|
|
| - protected:
|
| + // The payload is the pickle data immediately following the header.
|
| size_t payload_size() const { return header_->payload_size; }
|
| + const char* payload() const {
|
| + return reinterpret_cast<const char*>(header_) + header_size_;
|
| + }
|
|
|
| + protected:
|
| char* payload() {
|
| return reinterpret_cast<char*>(header_) + header_size_;
|
| }
|
| - const char* payload() const {
|
| - return reinterpret_cast<const char*>(header_) + header_size_;
|
| - }
|
|
|
| // Returns the address of the byte immediately following the currently valid
|
| // header + payload.
|
|
|