Lines Matching refs:data_len
238 Pickle::Pickle(const char* data, int data_len) in Pickle() argument
243 if (data_len >= static_cast<int>(sizeof(Header))) in Pickle()
244 header_size_ = data_len - header_->payload_size; in Pickle()
246 if (header_size_ > static_cast<unsigned int>(data_len)) in Pickle()
312 size_t data_len = bits::Align(length, sizeof(uint32_t)); in Reserve() local
313 DCHECK_GE(data_len, length); in Reserve()
315 DCHECK_LE(data_len, std::numeric_limits<uint32_t>::max()); in Reserve()
317 DCHECK_LE(write_offset_, std::numeric_limits<uint32_t>::max() - data_len); in Reserve()
318 size_t new_size = write_offset_ + data_len; in Reserve()
405 size_t data_len = bits::Align(length, sizeof(uint32_t)); in ClaimUninitializedBytesInternal() local
406 DCHECK_GE(data_len, length); in ClaimUninitializedBytesInternal()
408 DCHECK_LE(data_len, std::numeric_limits<uint32_t>::max()); in ClaimUninitializedBytesInternal()
410 DCHECK_LE(write_offset_, std::numeric_limits<uint32_t>::max() - data_len); in ClaimUninitializedBytesInternal()
411 size_t new_size = write_offset_ + data_len; in ClaimUninitializedBytesInternal()
421 memset(write + length, 0, data_len - length); // Always initialize padding in ClaimUninitializedBytesInternal()