function chunksIsBuffer(buf) {
  return buf instanceof Uint8Array;
}
Determines if a buffer or stack is a Uint8Array.

@param buf - The buffer or stack to check.
@returns True if the input is a Uint8Array, false otherwise.