Home | History | Annotate | Download | only in base

Lines Matching full:data_len

184 Pickle::Pickle(const char* data, int data_len)
189 if (data_len >= static_cast<int>(sizeof(Header)))
190 header_size_ = data_len - header_->payload_size;
192 if (header_size_ > static_cast<unsigned int>(data_len))
272 size_t data_len = AlignInt(length, sizeof(uint32));
273 DCHECK_GE(data_len, length);
275 DCHECK_LE(data_len, kuint32max);
277 DCHECK_LE(write_offset_, kuint32max - data_len);
278 size_t new_size = write_offset_ + data_len;
321 size_t data_len = AlignInt(length, sizeof(uint32));
322 DCHECK_GE(data_len, length);
324 DCHECK_LE(data_len, kuint32max);
326 DCHECK_LE(write_offset_, kuint32max - data_len);
327 size_t new_size = write_offset_ + data_len;
334 memset(write + length, 0, data_len - length);