Converts a Uint8Array to ASCII string replacing non-printable
bytes with '.'. Optionally truncates to maxLen characters
adding '…' at the end if there is more content.
Used by hex-view.ts to render the ASCII column of each row.
Parameters
bytes: Uint8Array
Bytes to convert
maxLen: number = Infinity
Maximum length of resulting string (not counting '…')
Converts a Uint8Array to ASCII string replacing non-printable bytes with '.'. Optionally truncates to
maxLencharacters adding '…' at the end if there is more content.Used by hex-view.ts to render the ASCII column of each row.