Lines Matching refs:data_len
276 Pickle::Pickle(const char* data, int data_len) in Pickle() argument
281 if (data_len >= static_cast<int>(sizeof(Header))) in Pickle()
282 header_size_ = data_len - header_->payload_size; in Pickle()
284 if (header_size_ > static_cast<unsigned int>(data_len)) in Pickle()
355 size_t data_len = bits::Align(length, sizeof(uint32_t)); in Reserve() local
356 DCHECK_GE(data_len, length); in Reserve()
358 DCHECK_LE(data_len, std::numeric_limits<uint32_t>::max()); in Reserve()
360 DCHECK_LE(write_offset_, std::numeric_limits<uint32_t>::max() - data_len); in Reserve()
361 size_t new_size = write_offset_ + data_len; in Reserve()
452 size_t data_len = bits::Align(length, sizeof(uint32_t)); in ClaimUninitializedBytesInternal() local
453 DCHECK_GE(data_len, length); in ClaimUninitializedBytesInternal()
455 DCHECK_LE(data_len, std::numeric_limits<uint32_t>::max()); in ClaimUninitializedBytesInternal()
457 DCHECK_LE(write_offset_, std::numeric_limits<uint32_t>::max() - data_len); in ClaimUninitializedBytesInternal()
458 size_t new_size = write_offset_ + data_len; in ClaimUninitializedBytesInternal()
468 memset(write + length, 0, data_len - length); // Always initialize padding in ClaimUninitializedBytesInternal()