Read the specified number of bytes from the source and return them as a Uint8Array.
The returned Uint8Array:
readSync
these constraints allow for more efficient zero-copy implementations in many cases
The number of bytes to read
Uint8Array containing the bytes that were read.
A synchronous readable stream