Home | History | Annotate | Download | only in base

Lines Matching full:static_cast

19 static const size_t kCapacityReadOnly = static_cast<size_t>(-1);
61 int64 num_bytes = static_cast<int64>(num_elements) * size_element;
62 int num_bytes32 = static_cast<int>(num_bytes);
63 if (num_bytes != static_cast<int64>(num_bytes32))
178 DCHECK_GE(static_cast<size_t>(header_size), sizeof(Header));
189 if (data_len >= static_cast<int>(sizeof(Header)))
192 if (header_size_ > static_cast<unsigned int>(data_len))
240 if (!WriteInt(static_cast<int>(value.size())))
243 return WriteBytes(value.data(), static_cast<int>(value.size()));
247 if (!WriteInt(static_cast<int>(value.size())))
251 static_cast<int>(value.size() * sizeof(wchar_t)));
255 if (!WriteInt(static_cast<int>(value.size())))
259 static_cast<int>(value.size()) * sizeof(char16));
298 DCHECK_LE(header_size, static_cast<size_t>(kPayloadUnit));
300 size_t length = static_cast<size_t>(end - start);
335 header_->payload_size = static_cast<uint32>(write_offset_ + length);