lib/array.js
function getter (index) {
  debug('getting array[%d]', index)
  var size = this.constructor.BYTES_PER_ELEMENT
  var baseType = this.constructor.type
  var offset = size * index
  var end = offset + size
  var buffer = this.buffer
  if (buffer.length < end) {
    debug('reinterpreting buffer from %d to %d', buffer.length, end)
    buffer = _ref.reinterpret(buffer, end)
  }
  return _ref.get(buffer, offset, baseType)
}
function getter (index) {
  debug('getting array[%d]', index)
  var size = this.constructor.BYTES_PER_ELEMENT
  var baseType = this.constructor.type
  var offset = size * index
  var end = offset + size
  var buffer = this.buffer
  if (buffer.length < end) {
    debug('reinterpreting buffer from %d to %d', buffer.length, end)
    buffer = _ref.reinterpret(buffer, end)
  }
  return _ref.get(buffer, offset, baseType)
}
function getter ( index ) { debug ( 'getting array[%d]' , index ) var size = this . constructor . BYTES_PER_ELEMENT var baseType = this . constructor . type var offset = size * index var end = offset + size var buffer = this . buffer if ( buffer . length < end ) { debug ( 'reinterpreting buffer from %d to %d' , buffer . length , end ) buffer = _ref . reinterpret ( buffer , end ) } return _ref . get ( buffer , offset , baseType ) }
The "getter" implementation for the "array-index" interface.
The getter implementation for the array - index interface .