buffer.isAscii(input)


如果 input 仅包含有效的 ASCII 编码数据,包括 input 为空的情况,则此函数返回 true。

🌐 This function returns true if input contains only valid ASCII-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.