Searched refs:kMaxInline (Results 1 – 9 of 9) sorted by relevance
/third_party/abseil-cpp/absl/strings/ |
D | cord.cc | 444 constexpr unsigned char Cord::InlineRep::kMaxInline; member in absl::Cord::InlineRep 448 static_assert(kMaxInline == 15, "set_data is hard-coded for a length of 15"); in set_data() 451 data_[kMaxInline] = static_cast<char>(n); in set_data() 455 assert(n <= kMaxInline); in set_data() 457 data_[kMaxInline] = static_cast<char>(n); in set_data() 462 size_t len = data_[kMaxInline]; in force_tree() 464 if (len > kMaxInline) { in force_tree() 476 size_t tag = data_[kMaxInline]; in reduce_size() 477 assert(tag <= kMaxInline); in reduce_size() 481 data_[kMaxInline] = static_cast<char>(tag); in reduce_size() [all …]
|
D | cord.h | 647 static constexpr unsigned char kMaxInline = 15; 648 static_assert(kMaxInline >= sizeof(absl::cord_internal::CordRep*), ""); 712 dst->erase(data_[kMaxInline]); in CopyTo() 718 bool is_tree() const { return data_[kMaxInline] > kMaxInline; } in is_tree() 730 alignas(absl::cord_internal::CordRep*) char data_[kMaxInline + 1]; 937 inline bool Cord::InlineRep::empty() const { return data_[kMaxInline] == 0; } in empty() 940 const char tag = data_[kMaxInline]; in size() 941 if (tag <= kMaxInline) return tag; in size() 953 data_[kMaxInline] = kTreeFlag; in set_tree() 969 const char tag = data_[kMaxInline]; in clear() [all …]
|
D | cord_test.cc | 1229 constexpr size_t kMaxInline = 15; // Cord::InlineRep::N in TEST() local 1230 const std::string small_string(kMaxInline, 'x'); in TEST() 1575 constexpr size_t kMaxInline = 15; in TEST() local 1577 EXPECT_EQ(contents.size(), kMaxInline); in TEST()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
D | cordz_test.cc | 56 auto constexpr kMaxInline = cord_internal::kMaxInline; variable 135 if (Length(GetParam()) > kMaxInline) { in TEST_P() 287 if (Length(GetParam()) > kMaxInline) { in TEST_P() 295 if (Length(GetParam()) > kMaxInline) { in TEST_P() 330 if (Length(GetParam()) > kMaxInline) { in TEST_P() 338 if (Length(TestCordSize::kInlined) + Length(GetParam()) > kMaxInline) { in TEST_P() 381 if (Length(GetParam()) > kMaxInline) { in TEST_P() 389 if (Length(TestCordSize::kInlined) + Length(GetParam()) > kMaxInline) { in TEST_P() 411 cord.RemovePrefix(cord.size() - kMaxInline); in TEST() 429 cord.RemoveSuffix(cord.size() - kMaxInline); in TEST() [all …]
|
D | cord.cc | 282 assert(src.length() > cord_internal::kMaxInline); in CordRepFromString() 309 constexpr unsigned char Cord::InlineRep::kMaxInline; member in absl::Cord::InlineRep 313 static_assert(kMaxInline == 15, "set_data is hard-coded for a length of 15"); in set_data() 320 assert(n <= kMaxInline); in set_data() 328 assert(tag <= kMaxInline); in reduce_size() 472 size_t available = kMaxInline - sz; in GetAppendRegion() 476 set_inline_size(has_length ? sz + length : kMaxInline); in GetAppendRegion() 583 if (n <= InlineRep::kMaxInline) { in Cord() 593 if (src.size() <= InlineRep::kMaxInline) { in Cord() 639 if (length <= InlineRep::kMaxInline) { in operator =() [all …]
|
D | cord_test_helpers.h | 38 kInlined = cord_internal::kMaxInline / 2 + 1,
|
D | cord.h | 707 static constexpr unsigned char kMaxInline = cord_internal::kMaxInline; 708 static_assert(kMaxInline >= sizeof(absl::cord_internal::CordRep*), ""); 1145 cord_internal::kMaxInline in Cord()
|
D | cord_test.cc | 1340 constexpr size_t kMaxInline = 15; // Cord::InlineRep::N in TEST_P() local 1341 const std::string small_string(kMaxInline, 'x'); in TEST_P() 1706 constexpr size_t kMaxInline = 15; in TEST_P() local 1708 EXPECT_EQ(contents.size(), kMaxInline); in TEST_P()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
D | cord_internal.h | 355 kMaxInline = 15, enumerator 370 static_assert(sizeof(cordz_info_t) * 2 == kMaxInline + 1, ""); 516 ABSL_ASSERT(size <= kMaxInline); in set_inline_size() 535 char& tag() { return reinterpret_cast<char*>(this)[kMaxInline]; } in tag() 536 char tag() const { return reinterpret_cast<const char*>(this)[kMaxInline]; } in tag() 543 char as_chars_[kMaxInline + 1]; 548 static_assert(sizeof(InlineData) == kMaxInline + 1, "");
|