Returns the number of bytes needed outside the slot itself: - if the length is too long to smallify, return length - if the length is small enough to smallify: - if assume_smallify is true or the string is already smallified return 0 - otherwise (not already smallified and assume_smallify is false) return length
| 101 | /// - if assume_smallify is true or the string is already smallified return 0 |
| 102 | /// - otherwise (not already smallified and assume_smallify is false) return length |
| 103 | int ExternalLen(bool assume_smallify) const { |
| 104 | return string_impl_.ExternalLen(assume_smallify); |
| 105 | } |
| 106 | |
| 107 | /// Sets the length of this String object. Length can only be decreased. |
| 108 | void SetLen(int len) { return string_impl_.SetLen(len); } |