function binaryStrToArrayBuf(str) {
  const arrBuf = new ArrayBuffer(str.length);
  const arrBufUint8 = new Uint8Array(arrBuf);
  for (let t = 0; t < str.length; t++) {
    arrBufUint8[t] = str.charCodeAt(t);
  }
  return arrBuf;
}
// Convert a binary string to an ArrayBuffer.
Convert a binary string to an ArrayBuffer.
Convert a binary string to an ArrayBuffer .
function binaryStrToArrayBuf(str) {
  const arrBuf = new ArrayBuffer(str.length);
  const arrBufUint8 = new Uint8Array(arrBuf);
  for (let t = 0; t < str.length; t++) {
    arrBufUint8[t] = str.charCodeAt(t);
  }
  return arrBuf;
}
function binaryStrToArrayBuf ( str ) { const arrBuf = new ArrayBuffer ( str . length ) ; const arrBufUint8 = new Uint8Array ( arrBuf ) ; for ( let t = 0 ; t < str . length ; t ++ ) { arrBufUint8 [ t ] = str . charCodeAt ( t ) ; } return arrBuf ; }
Convert a binary string to an ArrayBuffer.
Convert a binary string to an ArrayBuffer .