Home
last modified time | relevance | path

Searched refs:header_size_ (Results 1 – 3 of 3) sorted by relevance

/external/chromium/base/
Dpickle.cc24 header_size_(sizeof(Header)), in Pickle()
33 header_size_(AlignInt(header_size, sizeof(uint32))), in Pickle()
44 header_size_(0), in Pickle()
48 header_size_ = data_len - header_->payload_size; in Pickle()
50 if (header_size_ > static_cast<unsigned int>(data_len)) in Pickle()
51 header_size_ = 0; in Pickle()
53 if (header_size_ != AlignInt(header_size_, sizeof(uint32))) in Pickle()
54 header_size_ = 0; in Pickle()
57 if (!header_size_) in Pickle()
63 header_size_(other.header_size_), in Pickle()
[all …]
Dpickle.h59 size_t size() const { return header_size_ + header_->payload_size; } in size()
151 DCHECK_EQ(header_size_, sizeof(T)); in headerT()
156 DCHECK_EQ(header_size_, sizeof(T)); in headerT()
175 return reinterpret_cast<char*>(header_) + header_size_; in payload()
178 return reinterpret_cast<const char*>(header_) + header_size_; in payload()
236 size_t header_size_; // Supports extra data between header and payload. variable
Dpickle_unittest.cc175 EXPECT_TRUE(end == Pickle::FindNext(pickle.header_size_, start, end)); in TEST()
176 EXPECT_TRUE(NULL == Pickle::FindNext(pickle.header_size_, start, end - 1)); in TEST()
177 EXPECT_TRUE(end == Pickle::FindNext(pickle.header_size_, start, end + 1)); in TEST()