UTLD_char_length_to_byte_length @brief Return max byte length necessary for a specified character length string @param lengthInChars @param maxBytesPerChar **/
| 55 | |
| 56 | **/ |
| 57 | USHORT UTLD_char_length_to_byte_length(USHORT lengthInChars, USHORT maxBytesPerChar, USHORT overhead) |
| 58 | { |
| 59 | return MIN(((MAX_COLUMN_SIZE - overhead) / maxBytesPerChar) * maxBytesPerChar, |
| 60 | (ULONG) lengthInChars * maxBytesPerChar); |
| 61 | } |
no outgoing calls
no test coverage detected