acl-js/src-js/compressed_tracks.js
// A CompressedTracks instance must be bound before it can be used to decompress.
A CompressedTracks instance must be bound before it can be used to decompress.
A CompressedTracks instance must be bound before it can be used to decompress .
bind(decoder) {
    if (!decoder || !(decoder instanceof Decoder)) {
      throw new TypeError("'decoder' must be a Decoder instance")
    }
    if (this._decoder) {
      throw new Error('Already bound to a decoder')
    }
    const mem = decoder.malloc(this.byteLength)
    mem.array.set(this._array)
    this._mem = mem
    this._array = null
    this._decoder = decoder
  }
bind ( decoder ) { if ( ! decoder || ! ( decoder instanceof Decoder ) ) { throw new TypeError ( "'decoder' must be a Decoder instance" ) } if ( this . _decoder ) { throw new Error ( 'Already bound to a decoder' ) } const mem = decoder . malloc ( this . byteLength ) mem . array . set ( this . _array ) this . _mem = mem this . _array = null this . _decoder = decoder }
A CompressedTracks instance must be bound before it can be used to decompress.
A CompressedTracks instance must be bound before it can be used to decompress .
// Allocate space on the WASM heap and copy our content over