Home
last modified time | relevance | path

Searched refs:kMaxFlatLength (Results 1 – 16 of 16) sorted by relevance

/external/angle/third_party/abseil-cpp/absl/strings/internal/
Dcord_rep_flat.h43 static constexpr size_t kMaxFlatLength = kMaxFlatSize - kFlatOverhead; variable
92 } else if (len > kMaxFlatLength) { in New()
93 len = kMaxFlatLength; in New()
Dcord_rep_ring.cc57 assert(n <= kMaxFlatLength); in CreateFlat()
516 const size_t flats = (data.length() - 1) / kMaxFlatLength + 1; in Append()
522 while (data.length() >= kMaxFlatLength) { in Append()
523 auto* flat = CreateFlat(data.data(), kMaxFlatLength); in Append()
524 filler.Add(flat, 0, pos += kMaxFlatLength); in Append()
525 data.remove_prefix(kMaxFlatLength); in Append()
551 const size_t flats = (data.length() - 1) / kMaxFlatLength + 1; in Prepend()
556 size_t first_size = data.size() - (flats - 1) * kMaxFlatLength; in Prepend()
565 assert(data.size() >= kMaxFlatLength); in Prepend()
566 flat = CreateFlat(data.data(), kMaxFlatLength); in Prepend()
[all …]
/external/angle/third_party/abseil-cpp/absl/strings/
Dcord_test_helpers.h52 kMedium = cord_internal::kMaxFlatLength / 2 + 1,
55 kLarge = cord_internal::kMaxFlatLength * 4
Dcord.cc61 using ::absl::cord_internal::kMaxFlatLength;
225 if (length <= kMaxFlatLength) { in RingNewTree()
228 CordRepFlat* flat = CreateFlat(data, kMaxFlatLength, 0); in RingNewTree()
229 data += kMaxFlatLength; in RingNewTree()
230 length -= kMaxFlatLength; in RingNewTree()
231 size_t extra = (length - 1) / kMaxFlatLength + 1; in RingNewTree()
243 absl::FixedArray<CordRep*> reps((length - 1) / kMaxFlatLength + 1); in NewTree()
246 const size_t len = std::min(length, kMaxFlatLength); in NewTree()
694 rep = ForceRing(rep, (src.size() - 1) / kMaxFlatLength + 1); in AppendArray()
701 if (src.size() < kMaxFlatLength) { in AppendArray()
[all …]
Dcord_test.cc603 static const int kMaxFlatLength = 4096 - 9; in TestData() local
604 static const int kHalf = kMaxFlatLength / 2; in TestData()
611 data_.push_back(MakeString(kMaxFlatLength + i)); in TestData()
Dcord_ring_test.cc238 if (s.size() <= absl::cord_internal::kMaxFlatLength) { in MakeLeaf()
/external/openscreen/third_party/abseil/src/absl/strings/
Dcord.cc99 static constexpr size_t kMaxFlatLength = kMaxFlatSize - kFlatOverhead; variable
377 } else if (length_hint > kMaxFlatLength) { in NewFlat()
378 length_hint = kMaxFlatLength; in NewFlat()
395 absl::FixedArray<CordRep*> reps((length - 1) / kMaxFlatLength + 1); in NewTree()
398 const size_t len = std::min(length, kMaxFlatLength); in NewTree()
778 if (src_size < kMaxFlatLength) { in AppendArray()
1736 if (total_size <= kMaxFlatLength) { in FlattenSlowPath()
1978 size_t CordTestAccess::MaxFlatLength() { return kMaxFlatLength; } in MaxFlatLength()
1983 ABSL_INTERNAL_CHECK(s <= kMaxFlatLength, absl::StrCat("Invalid length ", s)); in LengthToTag()
Dcord_test.cc556 static const int kMaxFlatLength = 4096 - 9; in TestData() local
557 static const int kHalf = kMaxFlatLength / 2; in TestData()
564 data_.push_back(MakeString(kMaxFlatLength + i)); in TestData()
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dcord.cc146 static constexpr size_t kMaxFlatLength = kMaxFlatSize - kFlatOverhead; variable
460 } else if (length_hint > kMaxFlatLength) { in NewFlat()
461 length_hint = kMaxFlatLength; in NewFlat()
478 absl::FixedArray<CordRep*> reps((length - 1) / kMaxFlatLength + 1); in NewTree()
481 const size_t len = std::min(length, kMaxFlatLength); in NewTree()
826 if (src_size < kMaxFlatLength) { in AppendArray()
1760 if (total_size <= kMaxFlatLength) { in FlattenSlowPath()
2002 size_t CordTestAccess::MaxFlatLength() { return kMaxFlatLength; } in MaxFlatLength()
2007 ABSL_INTERNAL_CHECK(s <= kMaxFlatLength, absl::StrCat("Invalid length ", s)); in LengthToTag()
Dcord_test.cc492 static const int kMaxFlatLength = 4096 - 9; in TestData() local
493 static const int kHalf = kMaxFlatLength / 2; in TestData()
500 data_.push_back(MakeString(kMaxFlatLength + i)); in TestData()
/external/libtextclassifier/abseil-cpp/absl/strings/
Dcord.cc105 static constexpr size_t kMaxFlatLength = kMaxFlatSize - kFlatOverhead; variable
381 } else if (length_hint > kMaxFlatLength) { in NewFlat()
382 length_hint = kMaxFlatLength; in NewFlat()
399 absl::FixedArray<CordRep*> reps((length - 1) / kMaxFlatLength + 1); in NewTree()
402 const size_t len = std::min(length, kMaxFlatLength); in NewTree()
781 if (src_size < kMaxFlatLength) { in AppendArray()
1739 if (total_size <= kMaxFlatLength) { in FlattenSlowPath()
1981 size_t CordTestAccess::MaxFlatLength() { return kMaxFlatLength; } in MaxFlatLength()
1986 ABSL_INTERNAL_CHECK(s <= kMaxFlatLength, absl::StrCat("Invalid length ", s)); in LengthToTag()
Dcord_test.cc540 static const int kMaxFlatLength = 4096 - 9; in TestData() local
541 static const int kHalf = kMaxFlatLength / 2; in TestData()
548 data_.push_back(MakeString(kMaxFlatLength + i)); in TestData()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dcord.cc105 static constexpr size_t kMaxFlatLength = kMaxFlatSize - kFlatOverhead; variable
381 } else if (length_hint > kMaxFlatLength) { in NewFlat()
382 length_hint = kMaxFlatLength; in NewFlat()
399 absl::FixedArray<CordRep*> reps((length - 1) / kMaxFlatLength + 1); in NewTree()
402 const size_t len = std::min(length, kMaxFlatLength); in NewTree()
781 if (src_size < kMaxFlatLength) { in AppendArray()
1739 if (total_size <= kMaxFlatLength) { in FlattenSlowPath()
1981 size_t CordTestAccess::MaxFlatLength() { return kMaxFlatLength; } in MaxFlatLength()
1986 ABSL_INTERNAL_CHECK(s <= kMaxFlatLength, absl::StrCat("Invalid length ", s)); in LengthToTag()
Dcord_test.cc540 static const int kMaxFlatLength = 4096 - 9; in TestData() local
541 static const int kHalf = kMaxFlatLength / 2; in TestData()
548 data_.push_back(MakeString(kMaxFlatLength + i)); in TestData()
/external/abseil-cpp/absl/strings/
Dcord.cc146 static constexpr size_t kMaxFlatLength = kMaxFlatSize - kFlatOverhead; variable
460 } else if (length_hint > kMaxFlatLength) { in NewFlat()
461 length_hint = kMaxFlatLength; in NewFlat()
478 absl::FixedArray<CordRep*> reps((length - 1) / kMaxFlatLength + 1); in NewTree()
481 const size_t len = std::min(length, kMaxFlatLength); in NewTree()
826 if (src_size < kMaxFlatLength) { in AppendArray()
1760 if (total_size <= kMaxFlatLength) { in FlattenSlowPath()
2002 size_t CordTestAccess::MaxFlatLength() { return kMaxFlatLength; } in MaxFlatLength()
2007 ABSL_INTERNAL_CHECK(s <= kMaxFlatLength, absl::StrCat("Invalid length ", s)); in LengthToTag()
Dcord_test.cc492 static const int kMaxFlatLength = 4096 - 9; in TestData() local
493 static const int kHalf = kMaxFlatLength / 2; in TestData()
500 data_.push_back(MakeString(kMaxFlatLength + i)); in TestData()