| 132 | } |
| 133 | |
| 134 | String(const IN STRING_INFO* StringInfo) : String() { |
| 135 | if (StringInfo->SsoUsing) { |
| 136 | Copy(SsoBuffer, StringInfo->Buffer, StringInfo->Length); |
| 137 | SetupSso(&Data, SsoBuffer); |
| 138 | Data.Length = StringInfo->Length; |
| 139 | } else { |
| 140 | Data = *StringInfo; |
| 141 | // Check whether we can use SSO: |
| 142 | if (Data.Length < SSO_SIZE) { |
| 143 | SetupSso(&Data, SsoBuffer); |
| 144 | Data.Length = StringInfo->Length; |
| 145 | Copy(SsoBuffer, StringInfo->Buffer, Data.Length); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | } |
| 150 | |
| 151 | public: |
| 152 |
nothing calls this directly
no outgoing calls
no test coverage detected