Lines Matching refs:header_size
224 Pickle::Pickle(int header_size) in Pickle() argument
226 header_size_(bits::Align(header_size, sizeof(uint32_t))), in Pickle()
229 DCHECK_GE(static_cast<size_t>(header_size), sizeof(Header)); in Pickle()
230 DCHECK_LE(header_size, kPayloadUnit); in Pickle()
347 const char* Pickle::FindNext(size_t header_size, in FindNext() argument
351 if (!PeekNext(header_size, start, end, &pickle_size)) in FindNext()
361 bool Pickle::PeekNext(size_t header_size, in PeekNext() argument
365 DCHECK_EQ(header_size, bits::Align(header_size, sizeof(uint32_t))); in PeekNext()
366 DCHECK_GE(header_size, sizeof(Header)); in PeekNext()
367 DCHECK_LE(header_size, static_cast<size_t>(kPayloadUnit)); in PeekNext()
374 if (length < header_size) in PeekNext()
377 if (hdr->payload_size > std::numeric_limits<size_t>::max() - header_size) { in PeekNext()
382 *pickle_size = header_size + hdr->payload_size; in PeekNext()