change Uint8Array to ArrayBufferView