If a byte array is provided, returns as is, otherwise creates a Uint8Array from an array buffer like.
If a byte array is provided, returns as is, otherwise creates a Uint8Array from an array buffer like.