buffer.isUtf8(input)
input<Buffer> | <ArrayBuffer> | <TypedArray> 要验证的输入。- 返回:<boolean>
如果 input 只包含有效的 UTF-8 编码数据(包括 input 为空的情况),此函数将返回 true。
🌐 This function returns true if input contains only valid UTF-8-encoded data,
including the case in which input is empty.
一个分离的ArrayBuffer,或一个由它支持的TypedArray,被视为空的。
🌐 A detached ArrayBuffer, or a TypedArray backed by one, is treated as empty.