MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / UTLD_char_length_to_byte_length

Function UTLD_char_length_to_byte_length

src/dsql/utld.cpp:57–61  ·  view source on GitHub ↗

UTLD_char_length_to_byte_length @brief Return max byte length necessary for a specified character length string @param lengthInChars @param maxBytesPerChar **/

Source from the content-addressed store, hash-verified

55
56**/
57USHORT 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}

Callers 2

setParameterTypeMethod · 0.85
GEN_portFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected