Returns the size of a Null-terminated Unicode string in bytes, including the Null terminator. This function returns the size, in bytes, of the Null-terminated Unicode string specified by String. If String is NULL, then ASSERT(). If String is not aligned on a 16-bit boundary, then ASSERT(). If PcdMaximumUnicodeStringLength is not zero, and String contains more than PcdMaxim
| 218 | |
| 219 | **/ |
| 220 | UINTN |
| 221 | EFIAPI |
| 222 | StrSize ( |
| 223 | IN CONST CHAR16 *String |
| 224 | ) |
| 225 | { |
| 226 | if (!String) { |
| 227 | return 0; |
| 228 | } |
| 229 | return (StrLen (String) + 1) * sizeof (*String); |
| 230 | } |
| 231 | |
| 232 | /** |
| 233 | Compares two Null-terminated Unicode strings, and returns the difference |
no test coverage detected