Searched refs:kFlatOverhead (Results 1 – 4 of 4) 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()
57 CordRepFlat* flat = CordRepFlat::New(size - kFlatOverhead); in Flat()59 flat->length = size - kFlatOverhead; in Flat()
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()
2034 size_t CordTestAccess::FlatOverhead() { return cord_internal::kFlatOverhead; } in FlatOverhead()2041 return cord_internal::AllocatedSizeToTag(s + cord_internal::kFlatOverhead); in LengthToTag()