truncateUtf8
Function: truncateUtf8()
truncateUtf8(
text,max):string
Defined in: packages/core/src/rest/restoperationstransport.service.ts:171
Truncate a string to a number of UTF-8 bytes without cutting a character (a close reason holds 123 bytes)
Parameters
text
string
the text
max
number
the maximum byte length
Returns
string
the truncated text