extensions/xnat/src/utils/IO/classes/AIMExporter.js
/**
   * _getArraybuffer - Packs the AIMExporter's AIM file to an ArrayBuffer.
   *
   * @returns {ArrayBuffer} The Binarised AIM file.
   */
Packs the AIMExporter's AIM file to an ArrayBuffer.
@returns {ArrayBuffer} The Binarised AIM file.
Packs the AIMExporter ' s AIM file to an ArrayBuffer . @returns { ArrayBuffer } The Binarised AIM file .
_getArraybuffer() {
    const utf8AimString = unescape(encodeURIComponent(this._aimString));
    const arraybuffer = new ArrayBuffer(utf8AimString.length); 
    const uint8View = new Uint8Array(arraybuffer);
    for (let i = 0; i < utf8AimString.length; i++) {
      uint8View[i] = utf8AimString.charCodeAt(i);
    }
    return arraybuffer;
  }
_getArraybuffer ( ) { const utf8AimString = unescape ( encodeURIComponent ( this . _aimString ) ) ; const arraybuffer = new ArrayBuffer ( utf8AimString . length ) ; const uint8View = new Uint8Array ( arraybuffer ) ; for ( let i = 0 ; i < utf8AimString . length ; i ++ ) { uint8View [ i ] = utf8AimString . charCodeAt ( i ) ; } return arraybuffer ; }
_getArraybuffer - Packs the AIMExporter's AIM file to an ArrayBuffer.
_getArraybuffer - Packs the AIMExporter ' s AIM file to an ArrayBuffer .
// 2 bytes for each char