Searched refs:kFlatOverhead (Results 1 – 8 of 8) sorted by relevance
40 static constexpr size_t kFlatOverhead = offsetof(CordRep, storage); variable43 static constexpr size_t kMaxFlatLength = kMaxFlatSize - kFlatOverhead;44 static constexpr size_t kMinFlatLength = kMinFlatSize - kFlatOverhead;81 return TagToAllocatedSize(tag) - kFlatOverhead; in TagToLength()97 const size_t size = RoundUpForTag(len + kFlatOverhead); in New()
54 CordRepFlat* flat = CordRepFlat::New(size - kFlatOverhead); in Flat()56 flat->length = size - kFlatOverhead; in Flat()
137 static const size_t kFlatOverhead = offsetof(CordRep, data); variable139 static_assert(kFlatOverhead == 13, "Unittests assume kFlatOverhead == 13");146 static constexpr size_t kMaxFlatLength = kMaxFlatSize - kFlatOverhead;147 static constexpr size_t kMinFlatLength = 32 - kFlatOverhead;179 return TagToAllocatedSize(tag) - kFlatOverhead; in TagToLength()465 const size_t size = RoundUpForTag(length_hint + kFlatOverhead); in NewFlat()2001 size_t CordTestAccess::FlatOverhead() { return kFlatOverhead; } in FlatOverhead()2008 return AllocatedSizeToTag(s + kFlatOverhead); in LengthToTag()
92 static const size_t kFlatOverhead = offsetof(CordRep, data); variable99 static constexpr size_t kMaxFlatLength = kMaxFlatSize - kFlatOverhead;100 static constexpr size_t kMinFlatLength = 32 - kFlatOverhead;132 return TagToAllocatedSize(tag) - kFlatOverhead; in TagToLength()382 const size_t size = RoundUpForTag(length_hint + kFlatOverhead); in NewFlat()1977 size_t CordTestAccess::FlatOverhead() { return kFlatOverhead; } in FlatOverhead()1984 return AllocatedSizeToTag(s + kFlatOverhead); in LengthToTag()
98 static const size_t kFlatOverhead = offsetof(CordRep, data); variable105 static constexpr size_t kMaxFlatLength = kMaxFlatSize - kFlatOverhead;106 static constexpr size_t kMinFlatLength = 32 - kFlatOverhead;138 return TagToAllocatedSize(tag) - kFlatOverhead; in TagToLength()386 const size_t size = RoundUpForTag(length_hint + kFlatOverhead); in NewFlat()1980 size_t CordTestAccess::FlatOverhead() { return kFlatOverhead; } in FlatOverhead()1987 return AllocatedSizeToTag(s + kFlatOverhead); in LengthToTag()
2008 size_t CordTestAccess::FlatOverhead() { return cord_internal::kFlatOverhead; } in FlatOverhead()2015 return cord_internal::AllocatedSizeToTag(s + cord_internal::kFlatOverhead); in LengthToTag()