AppStatus.truncateLength

Check the length of the buffer against the specified maximum length. If the buffer is too long, set it to maximum.

  1. char[] truncateLength(char[] buffer)
  2. char[] truncateLength(char[] buffer, size_t max)
    class AppStatus
    protected
    char[]
    truncateLength
    (
    ref char[] buffer
    ,
    size_t max
    )

Parameters

buffer char[]

buffer to check the length of

max size_t

maximum number of characters in buffer

Return Value

Type: char[]

the truncated buffer

Meta