ab2str
Script
v3
Fork
1
2
3
4
5
6
7
/*
Convert an ArrayBuffer into a string
from https://developer.chrome.com/blog/how-to-convert-arraybuffer-to-and-from-string/
*/
export
function
ab2str
(
buf
)
{
return
String
.
fromCharCode
.
apply
(
null
,
new
Uint8Array
(
buf
)
)
;
}