Use native method of converting a Buffer object to a Uint8Array.